From f16e63c04b984da8999a379dd03d17d20d3dade1 Mon Sep 17 00:00:00 2001 From: will Farrell Date: Mon, 23 Jan 2023 08:11:45 -0700 Subject: [PATCH] fix: type --- packages/http-cors/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/http-cors/index.d.ts b/packages/http-cors/index.d.ts index f75f538dd..c6776de01 100644 --- a/packages/http-cors/index.d.ts +++ b/packages/http-cors/index.d.ts @@ -3,7 +3,7 @@ import middy from '@middy/core' export interface Options { getOrigin?: (incomingOrigin: string, options: Options) => string credentials?: boolean | string - disableBeforePreflightResponse: true + disableBeforePreflightResponse?: boolean headers?: string methods?: string origin?: string @@ -15,6 +15,6 @@ export interface Options { cacheControl?: string } -declare function httpCors (options?: Options): middy.MiddlewareObj +declare function httpCors(options?: Options): middy.MiddlewareObj export default httpCors