// Type definitions for weighted // Project: https://github.com/Schoonology/weighted // Definitions by: Craig Citro // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'weighted' { export interface RandomFunc { (): Number; } export function select (set: T[], weights: Number[], rand?: RandomFunc): T; export function select (obj: Object, rand?: RandomFunc): T; }