mirror of
https://github.com/flarum/framework.git
synced 2025-01-06 10:33:46 +08:00
c3a684c7ed
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
17 lines
481 B
TypeScript
17 lines
481 B
TypeScript
export default class PageState {
|
|
constructor(type: any, data?: {});
|
|
type: any;
|
|
data: {};
|
|
/**
|
|
* Determine whether the page matches the given class and data.
|
|
*
|
|
* @param {object} type The page class to check against. Subclasses are
|
|
* accepted as well.
|
|
* @param {object} data
|
|
* @return {boolean}
|
|
*/
|
|
matches(type: object, data?: object): boolean;
|
|
get(key: any): any;
|
|
set(key: any, value: any): void;
|
|
}
|