1 | // Type definitions for object.pick 1.3
|
2 | // Project: https://github.com/jonschlinkert/object.pick
|
3 | // Definitions by: Ifiok Jr. <https://github.com/ifiokjr>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 | // TypeScript Version: 2.8
|
6 |
|
7 | /**
|
8 | * Returns a filtered copy of an object with only the specified keys, similar to `_.pick` from lodash / underscore.
|
9 | *
|
10 | * @param object
|
11 | * @param keys
|
12 | */
|
13 | declare function pick<T extends object, U extends keyof T>(object: T, keys: readonly U[]): Pick<T, U>;
|
14 |
|
15 | export = pick;
|