mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Fix no-single-module
This commit is contained in:
Vendored
+6
-8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user