Fix no-single-module

This commit is contained in:
Roberts Slisans
2017-08-07 18:07:49 +03:00
parent 99c8fcc889
commit c490fb9147
+6 -8
View File
@@ -3,11 +3,9 @@
// Definitions by: Roberts Slisans <https://github.com/rsxdalv>
// 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<T>(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<T>(arr: T[], weights: number[]): T;
// Let allows typescript to still use ES2015 style imports
declare let y: typeof weighted;
export = y;