mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-18 03:58:44 +08:00
Update react-app.d.ts
This commit is contained in:
12
web/src/react-app.d.ts
vendored
12
web/src/react-app.d.ts
vendored
@@ -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<React.SVGProps<SVGSVGElement>>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user