From 5edf8a7f6ca53402f2dbb449a37a3311d7408ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Tue, 1 Aug 2017 09:43:55 +0200 Subject: [PATCH] sync flow lib --- package.json | 4 +-- packages/tests/flow/snapshot.txt | 62 ++++++++++++++++---------------- yarn.lock | 8 ++--- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index 5ba1006..e7488b6 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "browserify": "^14.3.0", "browserify-shim": "^3.8.12", "documentation": "4.0.0-beta.18", - "flow-bin": "^0.49.1", - "flow-copy-source": "^1.1.0", + "flow-bin": "^0.51.1", + "flow-copy-source": "^1.2.0", "lerna": "^2.0.0", "prettier": "^1.5.3" } diff --git a/packages/tests/flow/snapshot.txt b/packages/tests/flow/snapshot.txt index a15dbcb..e8a0bde 100644 --- a/packages/tests/flow/snapshot.txt +++ b/packages/tests/flow/snapshot.txt @@ -1,4 +1,4 @@ -../all.test.js:2651 +Error: ../all.test.js:2651 v---- 2651: ; ^^^^^^^^ React element `Node` 396: props: Props; @@ -90,7 +90,7 @@ incorrect.js:19 19: ; ^^^^^^^^ props of React element `Node` -incorrect.js:25 +Error: incorrect.js:25 25: ; ^^^^^^^^^^^^^ React element `Node` 25: ; @@ -98,7 +98,7 @@ incorrect.js:25 396: props: Props; ^^^^^ object type. See: ../node_modules/gl-react/lib/Node.js.flow:396 -incorrect.js:25 +Error: incorrect.js:25 25: ; ^^^^^^^^^^^^^ React element `Node` 396: props: Props; @@ -106,7 +106,7 @@ incorrect.js:25 25: ; ^^^^^^^^^^^^^ props of React element `Node` -incorrect.js:27 +Error: incorrect.js:27 27: ; ^^^^^^^^^^^^ React element `Bus` 27: ; @@ -114,7 +114,7 @@ incorrect.js:27 45: export default class Bus extends Component<{ index: number }, Props, void> { ^^^^^ object type. See: ../node_modules/gl-react/lib/Bus.js.flow:45 -incorrect.js:29 +Error: incorrect.js:29 v--------------- 29: const shaders = Shaders.create({ 30: valid: { @@ -127,7 +127,7 @@ incorrect.js:29 45: [key: string]: ShaderDefinition ^^^^^^^^^^^^^^^^ exact type: object type. See: ../node_modules/gl-react/lib/Shaders.js.flow:45 -incorrect.js:29 +Error: incorrect.js:29 v--------------- 29: const shaders = Shaders.create({ 30: valid: { @@ -140,7 +140,7 @@ incorrect.js:29 34: b: {}, ^^ object literal -incorrect.js:35 +Error: incorrect.js:35 35: c: { frag: true } ^^^^^^^^^^^^^^ object literal. This type is incompatible with 45: [key: string]: ShaderDefinition @@ -151,19 +151,19 @@ incorrect.js:35 16: frag: GLSLCode ^^^^^^^^ string. See: ../node_modules/gl-react/lib/Shaders.js.flow:16 -incorrect.js:44 +Error: incorrect.js:44 44: surface.nope(); ^^^^ property `nope`. Property not found in 44: surface.nope(); ^^^^^^^ ISurface -incorrect.js:45 +Error: incorrect.js:45 45: node.nope(); ^^^^ property `nope`. Property not found in 45: node.nope(); ^^^^ Node -incorrect.js:51 +Error: incorrect.js:51 51: ^^^^^^^^^^^^^^^^^^^^^^^ React element `Bus` 51: @@ -171,7 +171,7 @@ incorrect.js:51 45: export default class Bus extends Component<{ index: number }, Props, void> { ^^^^^ object type. See: ../node_modules/gl-react/lib/Bus.js.flow:45 -incorrect.js:52 +Error: incorrect.js:52 52: ^^^^^^^^ React element `Node` 396: props: Props; @@ -179,7 +179,7 @@ incorrect.js:52 52: ^^^^^^^^ props of React element `Node` -incorrect.js:55 +Error: incorrect.js:55 55: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ React element `Node` 55: @@ -187,7 +187,7 @@ incorrect.js:55 396: props: Props; ^^^^^ object type. See: ../node_modules/gl-react/lib/Node.js.flow:396 -incorrect.js:55 +Error: incorrect.js:55 55: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ React element `Node` 55: @@ -195,7 +195,7 @@ incorrect.js:55 396: props: Props; ^^^^^ object type. See: ../node_modules/gl-react/lib/Node.js.flow:396 -incorrect.js:55 +Error: incorrect.js:55 55: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ React element `Node` 396: props: Props; @@ -203,7 +203,7 @@ incorrect.js:55 55: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ props of React element `Node` -incorrect.js:62 +Error: incorrect.js:62 62: connectSize(); ^^^^^^^^^^^^^ function call 62: connectSize(); @@ -211,7 +211,7 @@ incorrect.js:62 19: const connectSize = (GLComponent: ReactClass<*>) => ^^^^^^^^^^^^^ class type: C. See: ../node_modules/gl-react/lib/connectSize.js.flow:19 -incorrect.js:66 +Error: incorrect.js:66 v---- 66: