UNPKG

ai21

Version:

AI21 TypeScript SDK

11 lines (10 loc) 461 B
export declare const isBrowser: boolean; /** * A Web Worker is a background thread that runs JavaScript code separate from the main thread. * Web Workers enable concurrent processing by: * - Running CPU-intensive tasks without blocking the UI * - Performing background operations like data fetching and processing * - Operating independently from the main window context */ export declare const isWebWorker: boolean; export declare const isNode: boolean;