summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.d.ts
blob: 3f3eeb92af6483649d698113eb90fea1b49f9261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;