mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-01 19:45:48 +08:00
14 lines
588 B
TypeScript
14 lines
588 B
TypeScript
// Type definitions for seededshuffle 0.2
|
|
// Project: https://github.com/LouisT/SeededShuffle
|
|
// Definitions by: Uri Shaked <https://github.com/urish>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export const seed: number;
|
|
export const strSeed: string;
|
|
|
|
export function shuffle<T>(arr: T[], seed: string|number): T[];
|
|
export function shuffle<T>(arr: ReadonlyArray<T>, seed: string|number, copy: true): T[];
|
|
|
|
export function unshuffle<T>(arr: T[], seed: string|number): T[];
|
|
export function unshuffle<T>(arr: ReadonlyArray<T>, seed: string|number, copy: true): T[];
|