-
Notifications
You must be signed in to change notification settings - Fork 1
/
global.d.ts
35 lines (31 loc) · 1.01 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
/* eslint-disable @typescript-eslint/no-explicit-any */
// ---------- Global augmentations ---------- //
declare global {
// Node.js
namespace NodeJS {
interface ProcessEnv {
// Node.js environment variables.
NODE_ENV: 'development' | 'production';
// Custom environment variables.
NEXT_PUBLIC_ENDPOINT: string;
ACCESS_HASH_SECRET: string;
DATABASE_URI: string;
MAIL_HOST: string;
MAIL_PORT: string;
MAIL_USERNAME: string;
MAIL_PASSWORD: string;
MAIL_SENDER: string;
}
}
/** Intended `any` type that bypasses eslint warnings. */
type Unused = any; // Type of unused arguments; `never` cannot replace it in strict mode.
type TODO = any; // Procrastination.
}
declare module 'react' {
// This allows use of `data-testid` attribute in Material UI components.
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
'data-testid'?: string;
}
}
// Treat this file as a module; required for global type augmentations.
export {};