How to use the apisearch.createEmptyResult function in apisearch

To help you get started, we’ve selected a few apisearch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apisearch-io / search-ui / src / Store.ts View on Github external
super();

        /**
         * Store initial state
         */
        this.dirty = true;

        /**
         * Current query instance
         */
        this.currentQuery = apisearch.createQueryMatchAll();

        /**
         * Data received
         */
        this.currentResult = apisearch.createEmptyResult();
    }