From e3c1bf3f46919f055c237704289c0ee99f94a66d Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 12 Dec 2017 17:51:10 -0800 Subject: [PATCH] Update flow-bin to 0.61.0 --- .flowconfig | 2 +- package.json | 2 +- src/data/bucket/symbol_bucket.js | 2 +- src/gl/value.js | 6 +++--- src/style-spec/expression/index.js | 2 +- yarn.lock | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.flowconfig b/.flowconfig index daf9d47d46f..8a5dc691a2f 100644 --- a/.flowconfig +++ b/.flowconfig @@ -13,4 +13,4 @@ unsafe.enable_getters_and_setters=true [version] -0.57.3 +0.61.0 diff --git a/package.json b/package.json index 2326c6ffb43..a11e14095fa 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "eslint-plugin-node": "^5.1.1", "eslint-plugin-react": "^7.3.0", "execcommand-copy": "^1.1.0", - "flow-bin": "^0.57.3", + "flow-bin": "^0.61.0", "flow-coverage-report": "^0.3.0", "flow-remove-types": "^1.0.4", "github-slugger": "^1.1.1", diff --git a/src/data/bucket/symbol_bucket.js b/src/data/bucket/symbol_bucket.js index feec1f27137..9143ff3f344 100644 --- a/src/data/bucket/symbol_bucket.js +++ b/src/data/bucket/symbol_bucket.js @@ -177,7 +177,7 @@ function addVertex(array, anchorX, anchorY, ox, oy, tx, ty, sizeVertex) { ); } -function addDynamicAttributes(dynamicLayoutVertexArray, p, angle) { +function addDynamicAttributes(dynamicLayoutVertexArray: StructArray, p: Point, angle: number) { dynamicLayoutVertexArray.emplaceBack(p.x, p.y, angle); dynamicLayoutVertexArray.emplaceBack(p.x, p.y, angle); dynamicLayoutVertexArray.emplaceBack(p.x, p.y, angle); diff --git a/src/gl/value.js b/src/gl/value.js index ab528705aa5..b8f8827a68c 100644 --- a/src/gl/value.js +++ b/src/gl/value.js @@ -302,7 +302,7 @@ class BindVertexArrayOES extends ContextValue implements Value { } } - static equal(a, b): boolean { + static equal(a: any, b: any): boolean { return a === b; } } @@ -349,7 +349,7 @@ class ColorAttachment extends FramebufferValue implements Value { gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, v, 0); } - static equal(a, b): boolean { + static equal(a: ?WebGLTexture, b: ?WebGLTexture): boolean { return a === b; } } @@ -365,7 +365,7 @@ class DepthAttachment extends FramebufferValue implements Value { } static deserialize(serialized: {_parameters: PropertyValueSpecification, _specification: StylePropertySpecification}) { - return new StylePropertyFunction(serialized._parameters, serialized._specification); + return ((new StylePropertyFunction(serialized._parameters, serialized._specification)): StylePropertyFunction); } static serialize(input: StylePropertyFunction) { diff --git a/yarn.lock b/yarn.lock index 839bf919cd4..d81b9c6762e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4069,9 +4069,9 @@ flatten@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" -flow-bin@^0.57.3: - version "0.57.3" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.57.3.tgz#843fb80a821b6d0c5847f7bb3f42365ffe53b27b" +flow-bin@^0.61.0: + version "0.61.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.61.0.tgz#d0473a8c35dbbf4de573823f4932124397d32d35" flow-coverage-report@^0.3.0: version "0.3.0"