-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.d.ts
62 lines (48 loc) · 1.31 KB
/
global.d.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
declare global {
type StringObject = Record<string, string>;
type NumberObject = Record<string, number>;
type UnknownObject = Record<string, unknown>;
type BooleanObject = Record<string, boolean>;
type UnixTimestamp = number;
type WithId<T> = T & {
id: number | string;
};
type Truthy<T> = false extends T
? never
: 0 extends T
? never
: '' extends T
? never
: null extends T
? never
: undefined extends T
? never
: T;
type Falsy = false | 0 | '' | null | undefined;
type Maybe<T> = T | undefined;
type EmptyCallback = () => void;
type HttpMethod = `GET` | `POST` | `PUT` | 'PATCH' | 'DELETE' | 'HEAD';
namespace Cypress {
interface Chainable {
cyGet(name: string): Chainable<JQuery>;
signIn(
redirectPath?: string,
credentials?: { email: string; password: string },
): void;
signUp(
redirectPath: string,
credentials: { email: string; password: string },
): void;
completeOnboarding(email: string, password: string): void;
visitSignUpEmailFromInBucket(email: string): void;
clearStorage(): void;
resetDatabase(): void;
}
}
}
declare module 'react' {
type FCC<Props = Record<string, unknown>> = React.FC<
React.PropsWithChildren<Props>
>;
}
export {};