1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 18:17:48 -05:00
denoland-deno/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.d.ts
Kamil Ogórek ef9b66950f
fix: use static Reflect methods in nodeGlobalThis proxy (#17696)
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-02-08 19:11:12 -05:00

15 lines
461 B
TypeScript

declare const tempGlobalThis: typeof globalThis;
declare const tempGlobal: typeof global;
declare const tempProcess: typeof process;
export {
tempGlobalThis as globalThis,
tempGlobal as global,
tempProcess as process,
};
type AssertTrue<T extends true> = never;
type _TestHasProcessGlobal = AssertTrue<
typeof globalThis extends { process: any } ? true : false
>;
export function withNodeGlobalThis(action: (global: typeof globalThis) => void): void;