Files
docs/node_modules/@algolia/autocomplete-shared/dist/esm/safelyRunOnBrowser.d.ts
yinxue 9e1b8bdc9d
Some checks failed
CI Pipeline / build (push) Failing after 3m23s
first-commit
2025-08-27 14:05:33 +08:00

9 lines
279 B
TypeScript

declare type BrowserCallback<TReturn> = (params: {
window: typeof window;
}) => TReturn;
/**
* Safely runs code meant for browser environments only.
*/
export declare function safelyRunOnBrowser<TReturn>(callback: BrowserCallback<TReturn>): TReturn | undefined;
export {};