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 Timer committed Oct 26, 2018
1 parent be31a31 commit a566dd0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions 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 a566dd0

Please sign in to comment.