From cba92e2747790b9aca2e441d0b404dcd858c2be8 Mon Sep 17 00:00:00 2001 From: Bruno Lemos Date: Wed, 24 Oct 2018 16:32:10 -0300 Subject: [PATCH] Update react-app.d.ts --- web/src/react-app.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/src/react-app.d.ts b/web/src/react-app.d.ts index 4dfbbd25..c19f3b5c 100644 --- a/web/src/react-app.d.ts +++ b/web/src/react-app.d.ts @@ -1,6 +1,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; @@ -27,7 +37,7 @@ declare module '*.png' { } declare module '*.svg' { - import React = require('react'); + import * as React from 'react'; export const ReactComponent: React.SFC>;