Skip to content
Permalink
Browse files

Move __DEV__ declaration to global.d.ts

  • Loading branch information...
jaredpalmer committed Jun 20, 2019
1 parent 5ee75b2 commit b4a975bbdfd6d42fea82f52b84556aebd57614ca
Showing with 8 additions and 3 deletions.
  1. +4 −1 .eslintrc.json
  2. +4 −0 types/global.d.ts
  3. +0 −2 types/index.d.ts
@@ -1,3 +1,6 @@
{
"extends": ["react-app"]
"extends": ["react-app"],
"globals": {
"__DEV__": "readonly"
}
}
@@ -0,0 +1,4 @@
// Declare global variables for TypeScript and VSCode.
// Do not rename this file or move these types into index.d.ts
// @see https://code.visualstudio.com/docs/nodejs/working-with-javascript#_global-variables-and-type-checking
declare const __DEV__: boolean;
@@ -3,8 +3,6 @@ declare module 'tiny-warning' {
export default function warning(condition: any, message: string): void;
}

declare const __DEV__: boolean;

declare module 'react-lifecycles-compat' {
import React from 'react';
export function polyfill<P>(

0 comments on commit b4a975b

Please sign in to comment.
You can’t perform that action at this time.