From c490fb9147cc37c5bd9aea69f034f3fc3781007c Mon Sep 17 00:00:00 2001 From: Roberts Slisans Date: Mon, 7 Aug 2017 18:07:49 +0300 Subject: [PATCH] Fix no-single-module --- types/pick-weight/index.d.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/types/pick-weight/index.d.ts b/types/pick-weight/index.d.ts index 9320cde537..f91da7ee72 100644 --- a/types/pick-weight/index.d.ts +++ b/types/pick-weight/index.d.ts @@ -3,11 +3,9 @@ // Definitions by: Roberts Slisans // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module "pick-weight" { - // Dummy function allows to avoid hard to kill or fix tslint warning - // (exporting pluginFunc will make this a non-importable module) - function weighted(arr: T[], weights: number[]): T; - // Let allows typescript to still use ES2015 style imports - let y: typeof weighted; - export = y; -} +// Dummy function allows to avoid hard to kill or fix tslint warning +// (exporting pluginFunc will make this a non-importable module) +declare function weighted(arr: T[], weights: number[]): T; +// Let allows typescript to still use ES2015 style imports +declare let y: typeof weighted; +export = y;