1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 22:20:21 +02:00

Bundled output for commit ec98028bd8

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot
2021-11-12 00:58:35 +00:00
parent ec98028bd8
commit 196eae74d2
6 changed files with 8 additions and 10 deletions

View File

@@ -24,8 +24,8 @@ export default class ExtensionPage<Attrs extends ExtensionPageAttrs = ExtensionP
header(): JSX.Element[]; header(): JSX.Element[];
sections(vnode: Mithril.VnodeDOM<Attrs, this>): ItemList<unknown>; sections(vnode: Mithril.VnodeDOM<Attrs, this>): ItemList<unknown>;
content(vnode: Mithril.VnodeDOM<Attrs, this>): JSX.Element; content(vnode: Mithril.VnodeDOM<Attrs, this>): JSX.Element;
topItems(): ItemList<unknown>; topItems(): ItemList<Mithril.Children>;
infoItems(): ItemList<unknown>; infoItems(): ItemList<Mithril.Children>;
toggle(): void; toggle(): void;
isEnabled(): any; isEnabled(): any;
onerror(e: RequestError): void; onerror(e: RequestError): void;

View File

@@ -3,8 +3,8 @@ import ItemList from './ItemList';
export default class BasicEditorDriver implements EditorDriverInterface { export default class BasicEditorDriver implements EditorDriverInterface {
el: HTMLTextAreaElement; el: HTMLTextAreaElement;
constructor(dom: HTMLElement, params: EditorDriverParams); constructor(dom: HTMLElement, params: EditorDriverParams);
build(dom: HTMLElement, params: EditorDriverParams): void; protected build(dom: HTMLElement, params: EditorDriverParams): void;
keyHandlers(params: EditorDriverParams): ItemList; protected keyHandlers(params: EditorDriverParams): ItemList<(e: KeyboardEvent) => void>;
moveCursorTo(position: number): void; moveCursorTo(position: number): void;
getSelectionRange(): Array<number>; getSelectionRange(): Array<number>;
getLastNChars(n: number): string; getLastNChars(n: number): string;

View File

@@ -80,10 +80,8 @@ export default class DiscussionPage<CustomAttrs extends IDiscussionPageAttrs = I
show(discussion: Discussion): void; show(discussion: Discussion): void;
/** /**
* Build an item list for the contents of the sidebar. * Build an item list for the contents of the sidebar.
*
* @return {ItemList}
*/ */
sidebarItems(): ItemList<unknown>; sidebarItems(): ItemList<Mithril.Vnode<{}, {}>>;
/** /**
* When the posts that are visible in the post stream change (i.e. the user * When the posts that are visible in the post stream change (i.e. the user
* scrolls up or down), then we update the URL and mark the posts as read. * scrolls up or down), then we update the URL and mark the posts as read.

View File

@@ -87,7 +87,7 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
/** /**
* Build an item list of SearchSources. * Build an item list of SearchSources.
*/ */
sourceItems(): ItemList; sourceItems(): ItemList<SearchSource>;
/** /**
* Get all of the search result items that are selectable. * Get all of the search result items that are selectable.
*/ */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long