@types/globalthis
Version:
TypeScript definitions for globalthis
24 lines (19 loc) • 517 B
TypeScript
/**
* Gets the `globalThis` object.
*/
declare function getGlobal(): typeof globalThis;
declare namespace getGlobal {
/**
* Gets the `globalThis` object.
*/
function getPolyfill(): ReturnType<typeof import("./polyfill")>;
/**
* The `globalThis` object.
*/
const implementation: typeof import("./implementation");
/**
* Installs the `globalThis` property onto the global object.
*/
function shim(): ReturnType<typeof import("./shim")>;
}
export = getGlobal;