From 09c57a03a95e31dad16ed9fe1936b49b634972b4 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Fri, 26 Jan 2018 18:53:57 +1100 Subject: [PATCH] =?UTF-8?q?Update=20flow-bin=20to=20the=20latest=20version?= =?UTF-8?q?=20=F0=9F=9A=80=20(#3141)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(package): update flow-bin to version 0.64.0 * chore: Update Lodash Flow library definitions --- decls/flow-typed/lodash.js | 25 ++++++++++++++----------- package.json | 2 +- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/decls/flow-typed/lodash.js b/decls/flow-typed/lodash.js index f3a9d52b5a..753527d992 100644 --- a/decls/flow-typed/lodash.js +++ b/decls/flow-typed/lodash.js @@ -1,4 +1,4 @@ -// https://raw.githubusercontent.com/flowtype/flow-typed/master/definitions/npm/lodash_v4.x.x/flow_v0.55.x-/lodash_v4.x.x.js +// https://raw.githubusercontent.com/flowtype/flow-typed/master/definitions/npm/lodash_v4.x.x/flow_v0.63.x-/lodash_v4.x.x.js declare module "lodash" { declare type __CurriedFunction1 = (...r: [AA]) => R; declare type CurriedFunction1 = __CurriedFunction1; @@ -213,15 +213,18 @@ declare module "lodash" { chunk(array?: ?Array, size?: ?number): Array>; compact(array?: ?Array): Array; concat(base?: ?Array, ...elements: Array): Array; - difference(array?: ?Array, values?: ?Array): Array; + difference( + array?: ?$ReadOnlyArray, + values?: ?$ReadOnlyArray + ): Array; differenceBy( - array?: ?Array, - values?: ?Array, + array?: ?$ReadOnlyArray, + values?: ?$ReadOnlyArray, iteratee?: ?ValueOnlyIteratee ): T[]; differenceWith( - array?: ?(T[]), - values?: ?(T[]), + array?: ?$ReadOnlyArray, + values?: ?$ReadOnlyArray, comparator?: ?Comparator ): T[]; drop(array?: ?Array, n?: ?number): Array; @@ -751,8 +754,8 @@ declare module "lodash" { curry(func: Function, arity?: number): Function; curryRight(func: Function, arity?: number): Function; debounce(func: F, wait?: number, options?: DebounceOptions): F; - defer(func: Function, ...args?: Array): number; - delay(func: Function, wait: number, ...args?: Array): number; + defer(func: Function, ...args?: Array): TimeoutID; + delay(func: Function, wait: number, ...args?: Array): TimeoutID; flip(func: Function): Function; memoize(func: F, resolver?: Function): F; negate(predicate: Function): Function; @@ -2317,9 +2320,9 @@ declare module "lodash/fp" { curryRightN(arity: number, func: Function): Function; debounce(wait: number): (func: F) => F; debounce(wait: number, func: F): F; - defer(func: Function): number; - delay(wait: number): (func: Function) => number; - delay(wait: number, func: Function): number; + defer(func: Function): TimeoutID; + delay(wait: number): (func: Function) => TimeoutID; + delay(wait: number, func: Function): TimeoutID; flip(func: Function): Function; memoize(func: F): F; negate(predicate: Function): Function; diff --git a/package.json b/package.json index 81ed22f60c..a6964c3e54 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "eslint": "~4.16.0", "eslint-config-stylelint": "~8.1.0", "file-exists-promise": "^1.0.2", - "flow-bin": "^0.63.1", + "flow-bin": "^0.64.0", "husky": "^0.14.3", "jest": "^22.0.6", "lint-staged": "^6.0.0",