From cb372a6b4e41df647dcf8f959df400f839bd4658 Mon Sep 17 00:00:00 2001 From: Jan Dolezel Date: Tue, 9 Apr 2019 08:16:39 +0200 Subject: [PATCH] Added type for options for better backward compatibility in future --- types/multy/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/multy/index.d.ts b/types/multy/index.d.ts index dfa793ae57..ee9ee1079d 100644 --- a/types/multy/index.d.ts +++ b/types/multy/index.d.ts @@ -13,8 +13,10 @@ declare module "koa" { } } -declare function multy(opts?: busboy.BusboyConfig): Koa.Middleware; +declare namespace multy { + type Options = busboy.BusboyConfig; +} -declare namespace multy {} +declare function multy(opts?: multy.Options): Koa.Middleware; export = multy;