@promptbook/browser
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
17 lines (16 loc) • 508 B
TypeScript
/**
* Returns information about the current runtime environment
*
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environments
*
* @public exported from `@promptbook/utils`
*/
export declare function $detectRuntimeEnvironment(): {
isRunningInBrowser: boolean;
isRunningInJest: boolean;
isRunningInNode: boolean;
isRunningInWebWorker: boolean;
};
/**
* TODO: [🎺] Also detect and report node version here
*/