UNPKG

@grandom/shuffle

Version:

A configurable, flexible, seedable, and overall great random shuffler.

37 lines (36 loc) 2.39 kB
declare const _default: { (string: string): string; (string: string, count: number): string; (string: string, options: import("./RandomShuffle/RandomStringShuffle/index").ShuffleStringOptions): string; (string: string, count: number, options: import("./RandomShuffle/RandomStringShuffle/index").ShuffleStringOptions): string; } & { <T>(array: ArrayLike<T>): T; <T_1>(array: ArrayLike<T_1>, count: number): T_1; <T_2>(array: ArrayLike<T_2>, options: import("./RandomShuffle/RandomArrayShuffle/index").ShuffleArrayOptions<T_2>): T_2; <T_3>(array: ArrayLike<T_3>, count: number, options: import("./RandomShuffle/RandomArrayShuffle/index").ShuffleArrayOptions<T_3>): T_3; } & { <T_4 extends Record<string, any>>(object: T_4): T_4; <T_5 extends Record<string, any>>(object: T_5, count: number): T_5; <T_6 extends Record<string, any>>(object: T_6, options: import("./RandomShuffle/RandomObjectShuffle/index").ShuffleObjectOptions<T_6>): T_6; <T_7 extends Record<string, any>>(object: T_7, count: number, options: import("./RandomShuffle/RandomObjectShuffle/index").ShuffleObjectOptions<T_7>): T_7; } & { string: { (string: string): string; (string: string, count: number): string; (string: string, options: import("./RandomShuffle/RandomStringShuffle/index").ShuffleStringOptions): string; (string: string, count: number, options: import("./RandomShuffle/RandomStringShuffle/index").ShuffleStringOptions): string; }; array: { <T>(array: ArrayLike<T>): T; <T_1>(array: ArrayLike<T_1>, count: number): T_1; <T_2>(array: ArrayLike<T_2>, options: import("./RandomShuffle/RandomArrayShuffle/index").ShuffleArrayOptions<T_2>): T_2; <T_3>(array: ArrayLike<T_3>, count: number, options: import("./RandomShuffle/RandomArrayShuffle/index").ShuffleArrayOptions<T_3>): T_3; }; object: { <T_4 extends Record<string, any>>(object: T_4): T_4; <T_5 extends Record<string, any>>(object: T_5, count: number): T_5; <T_6 extends Record<string, any>>(object: T_6, options: import("./RandomShuffle/RandomObjectShuffle/index").ShuffleObjectOptions<T_6>): T_6; <T_7 extends Record<string, any>>(object: T_7, count: number, options: import("./RandomShuffle/RandomObjectShuffle/index").ShuffleObjectOptions<T_7>): T_7; }; }; export default _default;