Skip to content

Commit

Permalink
Fix process.env types (facebook#5589)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolemos authored and nate770 committed Oct 30, 2018
1 parent 534225a commit 71fbac6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/react-scripts/config/react-app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
// If you need to add additional declarations, please do so in a new file.

declare namespace NodeJS {
interface Process {
env: {
[key: string]: string | undefined;
NODE_ENV: 'development' | 'production' | 'test';
PUBLIC_URL: string;
};
interface ProcessEnv {
[key: string]: string | undefined
NODE_ENV: 'development' | 'production' | 'test'
PUBLIC_URL: string
}
}

Expand Down

0 comments on commit 71fbac6

Please sign in to comment.