Skip to content

Commit

Permalink
Add typings for process.env (facebook#5557)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolemos authored and chanand committed Oct 25, 2018
1 parent f6987b0 commit ca17d36
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/react-scripts/config/react-app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
// Do not edit this file. It's replaced every time you launch a toolbox action.
// 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;
};
}
}

declare module '*.bmp' {
const src: string;
export default src;
Expand Down

0 comments on commit ca17d36

Please sign in to comment.