mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-26 10:42:51 +00:00
12 lines
435 B
TypeScript
12 lines
435 B
TypeScript
// Type definitions for just-pick 2.1
|
|
// Project: https://github.com/angus-c/just#readme
|
|
// Definitions by: Peter Safranek <https://github.com/pe8ter>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
declare function pick<T, U extends keyof T>(obj: T, select: U[]): Pick<T, U>;
|
|
|
|
declare function pick<T, U extends keyof T>(obj: T, select1: U, ...selectn: U[]): Pick<T, U>;
|
|
|
|
export = pick;
|