summaryrefslogtreecommitdiff
path: root/tests/registry/npm/@denotest/globals/1.0.0/index.d.ts
blob: 548633db120e8a1eedf4034fe2248d4e983892e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 deleteSetTimeout(): void;
export function getSetTimeout(): typeof setTimeout;

export function checkWindowGlobal(): void;
export function checkSelfGlobal(): void;

export function getFoo(): string;