refactor: improve typescript module declare (#19254)

* refactor: improve typescript declare

* remove rc-progress  declare

* remove rc-drawer  declare

* improve site antd module resolve path
This commit is contained in:
骗你是小猫咪 2019-10-17 10:24:34 +08:00 committed by 偏右
parent 7d32f99283
commit f2e541ade5
4 changed files with 6 additions and 11 deletions

View File

@ -153,6 +153,7 @@
"@types/raf": "^3.4.0",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.8.4",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/shallowequal": "^1.1.1",
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^2.0.0",

View File

@ -1,5 +1,10 @@
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"antd": ["components/index.tsx"],
"antd/es/*": ["components/*"]
},
"strictNullChecks": true,
"moduleResolution": "node",
"esModuleInterop": true,

View File

@ -1,3 +0,0 @@
{
"extends": ["./node_modules/@ant-design/tools/lib/tslint.json"]
}

View File

@ -20,16 +20,10 @@ declare module 'rc-cascader';
declare module 'rc-checkbox';
declare module 'rc-radio';
declare module 'rc-dropdown';
declare module 'rc-editor-mention';
declare module 'rc-progress';
declare module 'rc-drawer';
declare module 'rc-tabs*';
declare module 'rc-tree';
@ -81,6 +75,4 @@ declare module '*.json' {
export default value;
}
declare module 'react-lifecycles-compat';
declare module 'react-copy-to-clipboard';