Newer
Older
alert / js / node_modules / flarum / forum / states / SearchState.d.ts
@Réz István Réz István on 18 Nov 2021 503 bytes first commit
export default class SearchState {
    constructor(cachedSearches?: any[]);
    cachedSearches: any[];
    getValue(): any;
    setValue(value: any): void;
    value: any;
    /**
     * Clear the search value.
     */
    clear(): void;
    /**
     * Mark that we have already searched for this query so that we don't
     * have to ping the endpoint again.
     */
    cache(query: any): void;
    /**
     * Check if this query has been searched before.
     */
    isCached(query: any): boolean;
}