web-worker-helper
Version:
Utilities for running tasks on worker threads
18 lines (17 loc) • 459 B
TypeScript
declare const self_: {
[key: string]: any;
};
declare const window_: {
[key: string]: any;
};
declare const global_: {
[key: string]: any;
};
declare const document_: {
[key: string]: any;
};
export { self_ as self, window_ as window, global_ as global, document_ as document };
/** true if running on a worker thread */
export declare const isWorker: boolean;
/** true if running on a mobile device */
export declare const isMobile: boolean;