mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Support _.property in lodash.d.ts
This commit is contained in:
12
lodash/lodash.d.ts
vendored
12
lodash/lodash.d.ts
vendored
@@ -6179,6 +6179,18 @@ declare module _ {
|
||||
**/
|
||||
parseInt(value: string): number;
|
||||
}
|
||||
|
||||
|
||||
//_.property
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* # Ⓢ
|
||||
* Creates a "_.pluck" style function, which returns the key value of a given object.
|
||||
* @param key (string)
|
||||
* @return the value of that key on the object
|
||||
**/
|
||||
property<T,RT>(key: string): (obj: T) => RT;
|
||||
}
|
||||
|
||||
//_.random
|
||||
interface LoDashStatic {
|
||||
|
||||
Reference in New Issue
Block a user