Updated types for pairs

This commit is contained in:
Confusus
2018-08-02 11:19:40 +02:00
parent ccb674adc7
commit 017ffb7238
2 changed files with 2 additions and 6 deletions
+2 -2
View File
@@ -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`.
-4
View File
@@ -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 } = {