From 090c78ffaee9c3c6d9f988efa046b38d06af376d Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 14 Apr 2021 17:07:52 +0800 Subject: [PATCH] fix(types): AsyncApiRes --- packages/uni-api/src/type.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/uni-api/src/type.ts b/packages/uni-api/src/type.ts index 2744a6670..86d15136b 100644 --- a/packages/uni-api/src/type.ts +++ b/packages/uni-api/src/type.ts @@ -54,9 +54,10 @@ type AsyncApiLike = (args: any) => Promise | void type AsyncApiOptions = Parameters[0] -type AsyncApiRes = Parameters< - Exclude ->[0] +type AsyncApiRes = Omit< + Parameters>[0], + 'errMsg' +> type AsyncApiRequired =

( args: P -- GitLab