mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 16:25:26 +08:00
16 lines
487 B
TypeScript
16 lines
487 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 {Record<string, unknown>} data
|
|
* @return {boolean}
|
|
*/
|
|
matches(type: object, data?: Record<string, unknown>): boolean;
|
|
get(key: any): any;
|
|
set(key: any, value: any): void;
|
|
}
|