未验证 提交 3047e453 编写于 作者: J Joe Haddad 提交者: GitHub

Correctly define NODE_ENV and `process.browser` (#7604)

* Correctly define NODE_ENV and `process.browser`

* Add crossOrigin property
上级 0c8f97b9
......@@ -11,6 +11,14 @@ import {
/// <reference types="react" />
/// <reference types="react-dom" />
declare namespace NodeJS {
interface ProcessEnv {
readonly NODE_ENV: 'development' | 'production'
readonly browser: boolean
readonly crossOrigin?: string
}
}
// Extend the React types with missing properties
declare module 'react' {
// <html amp=""> support
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册