mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 10:40:13 +00:00
I kept the deprecated `pick` declarations, but added the proposed (JSDoc-influenced) [deprecation annotation](https://github.com/Microsoft/TypeScript/issues/390) to them. The added `pickone` and `pickset` declarations have identical types to their respective `pick` flavors.
This commit is contained in:
committed by
Masahiro Wakame
parent
ff71c3d812
commit
b73aaa36d3
8
chance/chance.d.ts
vendored
8
chance/chance.d.ts
vendored
@@ -114,8 +114,16 @@ declare namespace Chance {
|
||||
capitalize(str: string): string;
|
||||
mixin(desc: MixinDescriptor): any;
|
||||
pad(num: number, width: number, padChar?: string): string;
|
||||
/**
|
||||
* @deprecated Use pickone
|
||||
*/
|
||||
pick<T>(arr: T[]): T;
|
||||
pickone<T>(arr: T[]): T;
|
||||
/**
|
||||
* @deprecated Use pickset
|
||||
*/
|
||||
pick<T>(arr: T[], count: number): T[];
|
||||
pickset<T>(arr: T[], count: number): T[];
|
||||
set: Setter;
|
||||
shuffle<T>(arr: T[]): T[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user