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 Timer committed Oct 24, 2018
1 parent 52faf46 commit 4b26235
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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 4b26235

Please sign in to comment.