UNPKG

@naoak/workerize-transferable

Version:

Helper functions for workerlize-loader to support transferables

12 lines 469 B
/// <reference types="node" /> /** * Get the global scope for browsers that do not support globalThis * https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/globalThis */ export declare function getGlobalThis(): (Window & typeof globalThis) | (NodeJS.Global & typeof globalThis); /** * Test if an object is transferable * @param x Object */ export declare function isTransferableObject(x: any): boolean; //# sourceMappingURL=util.d.ts.map