Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Jan 23, 2023
1 parent 438103b commit f16e63c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/http-cors/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit f16e63c

Please sign in to comment.