Skip to content

Commit 4b26235

Browse files
brunolemosTimer
authored andcommitted
Add typings for process.env (facebook#5557)
1 parent 52faf46 commit 4b26235

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: config/react-app.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
// Do not edit this file. It's replaced every time you launch a toolbox action.
33
// If you need to add additional declarations, please do so in a new file.
44

5+
declare namespace NodeJS {
6+
interface Process {
7+
env: {
8+
[key: string]: string | undefined;
9+
NODE_ENV: 'development' | 'production' | 'test';
10+
PUBLIC_URL: string;
11+
};
12+
}
13+
}
14+
515
declare module '*.bmp' {
616
const src: string;
717
export default src;

0 commit comments

Comments
 (0)