UNPKG

@kontent-ai/smart-link

Version:

Kontent.ai Smart Link SDK allowing to automatically inject [smart links](https://docs.kontent.ai/tutorials/develop-apps/build-strong-foundation/set-up-editing-from-preview#a-using-smart-links) to Kontent.ai according to manually specified [HTML data attri

9 lines (8 loc) 389 B
/** * Check the presence of query parameter in the current page URL. */ export declare function isQueryParamPresent(queryParam: string): boolean; /** * Watches for changes in the presence of a query parameter in the URL and calls a callback when it changes. */ export declare const watchQueryParamPresence: (queryParam: string, onChange: (isPresent: boolean) => void) => (() => void);