Skip to content

Commit

Permalink
refactor: improve typescript module declare (ant-design#19254)
Browse files Browse the repository at this point in the history
* refactor: improve typescript declare

* remove rc-progress  declare

* remove rc-drawer  declare

* improve site antd module resolve path
  • Loading branch information
shaodahong authored and afc163 committed Oct 17, 2019
1 parent 7d32f99 commit f2e541a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"antd": ["components/index.tsx"],
"antd/es/*": ["components/*"]
},
"strictNullChecks": true,
"moduleResolution": "node",
"esModuleInterop": true,
Expand Down
3 changes: 0 additions & 3 deletions tslint.json

This file was deleted.

8 changes: 0 additions & 8 deletions typings/custom-typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -81,6 +75,4 @@ declare module '*.json' {
export default value;
}

declare module 'react-lifecycles-compat';

declare module 'react-copy-to-clipboard';

0 comments on commit f2e541a

Please sign in to comment.