mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added _.allKeys function
This commit is contained in:
Vendored
+19
@@ -1226,6 +1226,13 @@ interface UnderscoreStatic {
|
||||
**/
|
||||
keys(object: any): string[];
|
||||
|
||||
/**
|
||||
* Retrieve all the names of object's own and inherited properties.
|
||||
* @param object Retrieve the key or property names from this object.
|
||||
* @return List of all the property names on `object`.
|
||||
**/
|
||||
allKeys(object: any): string[];
|
||||
|
||||
/**
|
||||
* Return all of the values of the object's properties.
|
||||
* @param object Retrieve the values of all the properties on this object.
|
||||
@@ -2301,6 +2308,12 @@ interface Underscore<T> {
|
||||
**/
|
||||
keys(): string[];
|
||||
|
||||
/**
|
||||
* Wrapped type `object`.
|
||||
* @see _.allKeys
|
||||
**/
|
||||
allKeys(): string[];
|
||||
|
||||
/**
|
||||
* Wrapped type `object`.
|
||||
* @see _.values
|
||||
@@ -3213,6 +3226,12 @@ interface _Chain<T> {
|
||||
**/
|
||||
keys(): _Chain<string>;
|
||||
|
||||
/**
|
||||
* Wrapped type `object`.
|
||||
* @see _.allKeys
|
||||
**/
|
||||
allKeys(): _Chain<string>;
|
||||
|
||||
/**
|
||||
* Wrapped type `object`.
|
||||
* @see _.values
|
||||
|
||||
Reference in New Issue
Block a user