forked from internxt/drive-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-app-env.d.ts
44 lines (41 loc) · 1.3 KB
/
react-app-env.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
/// <reference types="react-scripts" />
declare namespace NodeJS {
interface ProcessEnv {
NODE_ENV: 'development' | 'production' | 'test';
PUBLIC_URL: string;
REACT_APP_NODE_ENV: string;
REACT_APP_API_URL: string;
REACT_APP_DRIVE_NEW_API_URL: string;
REACT_APP_PHOTOS_API_URL: string;
REACT_APP_PAYMENTS_API_URL: string;
REACT_APP_CRYPTO_SECRET: string;
REACT_APP_CRYPTO_SECRET2: string;
REACT_APP_BRIDGE: string;
REACT_APP_PROXY: string;
REACT_APP_NOTIFICATIONS_URL: string;
REACT_APP_STRIPE_PK: string;
REACT_APP_STRIPE_TEST_PK: string;
REACT_APP_SEGMENT_KEY: string;
REACT_APP_SEGMENT_DEBUG: string;
REACT_APP_RECAPTCHA_V3: string;
REACT_APP_SHARE_LINKS_DOMAIN: string;
REACT_APP_HOSTNAME: string;
}
}
interface Window {
Stripe: stripe.StripeStatic;
analytics: SegmentAnalytics.AnalyticsJS;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
rudderanalytics: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
_adftrack: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
rdt: any;
grecaptcha: {
ready: (cb: () => void) => void;
execute: (siteKey: string, { action: string }) => Promise<string>;
};
}
interface Navigator {
brave?: { isBrave: () => Promise<boolean> };
}