Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flow-bin to 0.61.0 #5851

Merged
merged 1 commit into from
Dec 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
unsafe.enable_getters_and_setters=true

[version]
0.57.3
0.61.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/data/bucket/symbol_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/gl/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class BindVertexArrayOES extends ContextValue implements Value<any> {
}
}

static equal(a, b): boolean {
static equal(a: any, b: any): boolean {
return a === b;
}
}
Expand Down Expand Up @@ -349,7 +349,7 @@ class ColorAttachment extends FramebufferValue implements Value<?WebGLTexture> {
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;
}
}
Expand All @@ -365,7 +365,7 @@ class DepthAttachment extends FramebufferValue implements Value<?WebGLRenderbuff
gl.framebufferRenderbuffer(gl.FRAMEBUFFER, gl.DEPTH_ATTACHMENT, gl.RENDERBUFFER, v);
}

static equal(a, b): boolean {
static equal(a: ?WebGLRenderbuffer, b: ?WebGLRenderbuffer): boolean {
return a === b;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/style-spec/expression/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class StylePropertyFunction<T> {
}

static deserialize(serialized: {_parameters: PropertyValueSpecification<T>, _specification: StylePropertySpecification}) {
return new StylePropertyFunction(serialized._parameters, serialized._specification);
return ((new StylePropertyFunction(serialized._parameters, serialized._specification)): StylePropertyFunction<T>);
}

static serialize(input: StylePropertyFunction<T>) {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down