Skip to content

Commit f76b5c9

Browse files
brunolemosnate770
authored andcommitted
Add typings for process.env (facebook#5557)
1 parent 625177d commit f76b5c9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/react-scripts/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)