mirror of
https://github.com/flarum/core.git
synced 2025-08-11 02:44:04 +02:00
Bundled output for commit 187b5c6f0b
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
@@ -3,6 +3,7 @@ import Page, { IPageAttrs } from '../../common/components/Page';
|
||||
import ItemList from '../../common/utils/ItemList';
|
||||
import PostStreamState from '../states/PostStreamState';
|
||||
import Discussion from '../../common/models/Discussion';
|
||||
import { ApiResponseSingle } from '../../common/Store';
|
||||
export interface IDiscussionPageAttrs extends IPageAttrs {
|
||||
id: string;
|
||||
near?: number;
|
||||
@@ -77,7 +78,7 @@ export default class DiscussionPage<CustomAttrs extends IDiscussionPageAttrs = I
|
||||
/**
|
||||
* Initialize the component to display the given discussion.
|
||||
*/
|
||||
show(discussion: Discussion): void;
|
||||
show(discussion: ApiResponseSingle<Discussion>): void;
|
||||
/**
|
||||
* Build an item list for the contents of the sidebar.
|
||||
*/
|
||||
|
@@ -1,8 +1,8 @@
|
||||
export default class NotificationsDropdown extends Dropdown {
|
||||
onclick(): void;
|
||||
goToRoute(): void;
|
||||
getUnreadCount(): any;
|
||||
getNewCount(): any;
|
||||
getUnreadCount(): number | undefined;
|
||||
getNewCount(): number | undefined;
|
||||
menuClick(e: any): void;
|
||||
}
|
||||
import Dropdown from "../../common/components/Dropdown";
|
||||
|
@@ -1,10 +1,6 @@
|
||||
import PaginatedListState, { Page, PaginatedListParams } from '../../common/states/PaginatedListState';
|
||||
import PaginatedListState, { Page, PaginatedListParams, PaginatedListRequestParams } from '../../common/states/PaginatedListState';
|
||||
import Discussion from '../../common/models/Discussion';
|
||||
export interface IRequestParams {
|
||||
include: string[];
|
||||
filter: Record<string, string>;
|
||||
sort?: string;
|
||||
}
|
||||
import { ApiResponsePlural } from '../../common/Store';
|
||||
export interface DiscussionListParams extends PaginatedListParams {
|
||||
sort?: string;
|
||||
}
|
||||
@@ -12,8 +8,8 @@ export default class DiscussionListState<P extends DiscussionListParams = Discus
|
||||
protected extraDiscussions: Discussion[];
|
||||
constructor(params: P, page?: number);
|
||||
get type(): string;
|
||||
requestParams(): IRequestParams;
|
||||
protected loadPage(page?: number): Promise<Discussion[]>;
|
||||
requestParams(): PaginatedListRequestParams;
|
||||
protected loadPage(page?: number): Promise<ApiResponsePlural<Discussion>>;
|
||||
clear(): void;
|
||||
/**
|
||||
* Get a map of sort keys (which appear in the URL, and are used for
|
||||
|
Reference in New Issue
Block a user