mirror of
https://github.com/flarum/core.git
synced 2025-08-10 18:35:56 +02:00
Bundled output for commit 7db2d0f697
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
export default class RequestError {
|
||||
status: string;
|
||||
options: object;
|
||||
status: number;
|
||||
options: Record<string, unknown>;
|
||||
xhr: XMLHttpRequest;
|
||||
responseText: string | null;
|
||||
response: object | null;
|
||||
response: Record<string, unknown> | null;
|
||||
alert: any;
|
||||
constructor(status: string, responseText: string | null, options: object, xhr: XMLHttpRequest);
|
||||
constructor(status: number, responseText: string | null, options: Record<string, unknown>, xhr: XMLHttpRequest);
|
||||
}
|
||||
|
@@ -22,31 +22,23 @@
|
||||
* @see https://mithril.js.org/lifecycle-methods.html#onbeforeupdate
|
||||
*/
|
||||
export default class SubtreeRetainer {
|
||||
protected callbacks: (() => any)[];
|
||||
protected data: Record<string, any>;
|
||||
/**
|
||||
* @param {...callbacks} callbacks Functions returning data to keep track of.
|
||||
* @param callbacks Functions returning data to keep track of.
|
||||
*/
|
||||
constructor(...callbacks: any[]);
|
||||
callbacks: any[];
|
||||
data: {};
|
||||
constructor(...callbacks: (() => any)[]);
|
||||
/**
|
||||
* Return whether any data has changed since the last check.
|
||||
* If so, Mithril needs to re-diff the vnode and its children.
|
||||
*
|
||||
* @return {boolean}
|
||||
* @public
|
||||
*/
|
||||
public needsRebuild(): boolean;
|
||||
needsRebuild(): boolean;
|
||||
/**
|
||||
* Add another callback to be checked.
|
||||
*
|
||||
* @param {...Function} callbacks
|
||||
* @public
|
||||
*/
|
||||
public check(...callbacks: Function[]): void;
|
||||
check(...callbacks: (() => any)[]): void;
|
||||
/**
|
||||
* Invalidate the subtree, forcing it to be rerendered.
|
||||
*
|
||||
* @public
|
||||
* Invalidate the subtree, forcing it to be redrawn.
|
||||
*/
|
||||
public invalidate(): void;
|
||||
invalidate(): void;
|
||||
}
|
||||
|
Reference in New Issue
Block a user