mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 15:10:03 +00:00
8 lines
279 B
TypeScript
8 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 {};
|