mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-12 20:04:57 +02:00
9 lines
279 B
TypeScript
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 {};
|