From 7901613ebaa67e729c8dcf31393e3c827880bc38 Mon Sep 17 00:00:00 2001 From: Romain Faust Date: Thu, 23 Aug 2018 18:56:26 +0200 Subject: [PATCH] Change the export case to be more semantically correct --- types/koa-cors/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/koa-cors/index.d.ts b/types/koa-cors/index.d.ts index cda985f007..a08f6bbf45 100644 --- a/types/koa-cors/index.d.ts +++ b/types/koa-cors/index.d.ts @@ -6,9 +6,9 @@ import { Middleware, Request } from 'koa'; -declare function KoaCors(options?: KoaCors.Options): Middleware; +declare function koaCors(options?: koaCors.Options): Middleware; -declare namespace KoaCors { +declare namespace koaCors { interface Options { credentials?: true; expose?: string | string[]; @@ -19,4 +19,4 @@ declare namespace KoaCors { } } -export = KoaCors; +export = koaCors;