1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00
Files
php-flarum/js/dist-typings/common/states/PageState.d.ts
flarum-bot 3d62a6af27 Bundled output for commit d268894e61
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-12-27 19:02:33 +00:00

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;
}