From c58d510780c88fb9d7eea3fc9a5dd7659606c935 Mon Sep 17 00:00:00 2001 From: ijntvwh Date: Wed, 11 Aug 2021 11:32:43 +0800 Subject: [PATCH] Update interface.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit faas FaaSMiddleware定义有误 --- packages/faas/src/interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/faas/src/interface.ts b/packages/faas/src/interface.ts index 8b0fbcc73e06..a87332995662 100644 --- a/packages/faas/src/interface.ts +++ b/packages/faas/src/interface.ts @@ -11,7 +11,7 @@ export interface FaaSContext extends IMidwayContext { hooks?: MidwayHooks; } -export type FaaSMiddleware = (() => (context: FaaSContext, next: () => Promise) => any) | string; +export type FaaSMiddleware = ((context: FaaSContext, next: () => Promise) => any) | string; export type IMidwayFaaSApplication = IMidwayApplication