Newer
Older
alert / js / node_modules / flarum / common / states / PageState.d.ts
@Réz István Réz István on 18 Nov 2021 481 bytes first commit
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;
}