mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 14:05:12 +00: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 {};
|