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;