mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Update origin argument type
This commit is contained in:
parent
5dc41ce74c
commit
ff7921476c
4
types/kcors/index.d.ts
vendored
4
types/kcors/index.d.ts
vendored
@ -2,7 +2,7 @@
|
||||
// Project: https://github.com/koajs/cors
|
||||
// Definitions by: Xavier Stouder <https://github.com/Xstoudi>, Izayoi Ko <https://github.com/izayoiko>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
import * as Koa from "koa";
|
||||
|
||||
@ -11,7 +11,7 @@ export = cors;
|
||||
|
||||
declare namespace cors {
|
||||
interface Options {
|
||||
origin?: ((req: Koa.Request) => string) | string;
|
||||
origin?: ((ctx: Koa.Context) => string) | string;
|
||||
allowMethods?: string[] | string;
|
||||
exposeHeaders?: string[] | string;
|
||||
allowHeaders?: string[] | string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user