-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathglobalTypes.ts
33 lines (31 loc) · 963 Bytes
/
globalTypes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { NeedUmbrellaControllerParams } from './api/needUmbrella/controller/__tests__/needUmbrellaController.test';
import { NeedUmbrellaEndpoint } from './integration-test/NeedUmbrellaEndpoint.test';
export type JestEachArgument =
| NeedUmbrellaControllerParams
| NeedUmbrellaEndpoint;
declare global {
namespace NodeJS {
interface Global {
window: {
navigator:
| {
geolocation: {
getCurrentPosition: () => any;
};
}
| {};
};
}
}
namespace jest {
interface Each {
(strings: TemplateStringsArray, ...placeholders: any[]): (
name: string,
fn: (args: JestEachArgument, done: () => any) => any
) => void;
}
}
interface Window {
API_GW_URL: string;
}
}