From 15a281a9778120eb88fe0880c4efdb1fc5e2abee Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Thu, 13 Jan 2022 16:03:48 +0800 Subject: [PATCH 1/2] fix: fix cascader onChange type --- src/Cascader.tsx | 1 - tsconfig.json | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cascader.tsx b/src/Cascader.tsx index 198127c6..59460104 100644 --- a/src/Cascader.tsx +++ b/src/Cascader.tsx @@ -69,7 +69,6 @@ interface BaseCascaderProps void; displayRender?: (label: string[], selectedOptions?: OptionType[]) => React.ReactNode; checkable?: boolean | React.ReactNode; diff --git a/tsconfig.json b/tsconfig.json index 564674ee..8ee39506 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,7 @@ "declaration": true, "skipLibCheck": true, "esModuleInterop": true, + "strictFunctionTypes": true, "paths": { "@/*": ["src/*"], "@@/*": ["src/.umi/*"], From a86b63a3cca7a3d2246587b6cb0465fbaf097a34 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Thu, 13 Jan 2022 16:04:53 +0800 Subject: [PATCH 2/2] chore: code clean --- tsconfig.json | 1 - 1 file changed, 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 8ee39506..564674ee 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,6 @@ "declaration": true, "skipLibCheck": true, "esModuleInterop": true, - "strictFunctionTypes": true, "paths": { "@/*": ["src/*"], "@@/*": ["src/.umi/*"],