From 81d6c2d19b1cdbf0c7f735d385cb9b8b96a370a1 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Thu, 3 Jan 2019 12:14:19 -0800 Subject: [PATCH] Unit test for values with indexed type --- .../npm/lodash_v4.x.x/flow_v0.63.x-/test_lodash-v4.x.x.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/definitions/npm/lodash_v4.x.x/flow_v0.63.x-/test_lodash-v4.x.x.js b/definitions/npm/lodash_v4.x.x/flow_v0.63.x-/test_lodash-v4.x.x.js index e992ac36d6..ed0683e941 100644 --- a/definitions/npm/lodash_v4.x.x/flow_v0.63.x-/test_lodash-v4.x.x.js +++ b/definitions/npm/lodash_v4.x.x/flow_v0.63.x-/test_lodash-v4.x.x.js @@ -39,6 +39,7 @@ import toPairs from "lodash/toPairs"; import toPairsIn from "lodash/toPairsIn"; import unionBy from "lodash/unionBy"; import uniqBy from "lodash/uniqBy"; +import values from "lodash/values"; import xorBy from "lodash/xorBy"; import zip from "lodash/zip"; import zipWith from "lodash/zipWith"; @@ -502,3 +503,9 @@ pairs = toPairsIn({ a: 12, b: 100 }); (omitBy(null, num => num % 2): {}); (omitBy(undefined, num => num % 2): {}); (omitBy({ [1]: 1, [2]: 2 }, num => num === 2): { [prop: number]: number }); + +/** + * _.values + */ +// $ExpectError values retains the type of value +(values(({ a: 2 }: {[string]: number })): Array);