From eb325de6ac7e0d48fbd47602ef87b3c019c22daf Mon Sep 17 00:00:00 2001 From: mackwang112 Date: Wed, 11 Mar 2026 11:56:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtypescript5=20mapMutat?= =?UTF-8?q?ions=E6=8E=A8=E5=AF=BC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/store/@types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/store/@types/index.d.ts b/packages/store/@types/index.d.ts index dcf0f1cdcf..e19d5cc5ce 100644 --- a/packages/store/@types/index.d.ts +++ b/packages/store/@types/index.d.ts @@ -294,7 +294,7 @@ export interface IStoreWithThis any } - mapMutations(maps: K[]): Pick + mapMutations(maps: [...Maps]): { [P in Maps[number]]: M[P] } mapMutations(depPath: P, maps: readonly T[]): { [K in T]: CombineStringKey extends keyof GetAllDepsType ? GetAllDepsType[CombineStringKey] : (...payloads: any[]) => any } @@ -305,7 +305,7 @@ export interface IStoreWithThis any } - mapActions(maps: K[]): Pick + mapActions(maps: [...Maps]): { [P in Maps[number]]: A[P] } mapActions(depPath: P, maps: readonly T[]): { [K in T]: CombineStringKey extends keyof GetAllDepsType ? GetAllDepsType[CombineStringKey] : (...payloads: any[]) => any }