How to use the apisearch.ensureRepositoryConfigIsValid 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 / ApisearchUI.ts View on Github external
public static create(config: any): ApisearchUI {

        apisearch.ensureRepositoryConfigIsValid(config);

        /**
         * Build environment Id
         */
        const environmentId = createEnvironmentId();

        /**
         * Bootstrapping ApisearchUI application
         */
        bootstrap(
            environmentId,
            config,
        );

        /**
         * Register handleActions method (store reducer)