mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Updated types for pairs
This commit is contained in:
Vendored
+2
-2
@@ -3631,7 +3631,7 @@ declare module _ {
|
||||
* @param object Convert this object to a list of [key, value] pairs.
|
||||
* @return List of [key, value] pairs on `object`.
|
||||
**/
|
||||
pairs(object: any): any[][];
|
||||
pairs(object: any): [string, any][];
|
||||
|
||||
/**
|
||||
* Returns a copy of the object where the keys have become the values and the values the keys.
|
||||
@@ -4738,7 +4738,7 @@ declare module _ {
|
||||
* Wrapped type `object`.
|
||||
* @see _.pairs
|
||||
**/
|
||||
pairs(): any[][];
|
||||
pairs(): [string, any][];
|
||||
|
||||
/**
|
||||
* Wrapped type `object`.
|
||||
|
||||
@@ -537,10 +537,6 @@ function chain_tests() {
|
||||
let valuePerYear: number[] = _.chain(yearObject)
|
||||
.values()
|
||||
.value()
|
||||
|
||||
let keyValuePerYear: (string|number)[][] = _.chain(yearObject)
|
||||
.pairs()
|
||||
.value()
|
||||
}
|
||||
|
||||
var obj: { [k: string] : number } = {
|
||||
|
||||
Reference in New Issue
Block a user