diff --git a/package.json b/package.json index 909da417f5..cbe6080780 100644 --- a/package.json +++ b/package.json @@ -153,7 +153,6 @@ "@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", diff --git a/typings/custom-typings.d.ts b/typings/custom-typings.d.ts index 8dc168a5fb..a25c923f7f 100644 --- a/typings/custom-typings.d.ts +++ b/typings/custom-typings.d.ts @@ -76,3 +76,6 @@ declare module '*.json' { } declare module 'react-copy-to-clipboard'; + +// https://github.com/ant-design/ant-design/pull/19254 +declare module 'react-lifecycles-compat';