Skip to content

Commit

Permalink
Update flow-typed definitions (cruise-automation#22)
Browse files Browse the repository at this point in the history
And make the process for updating those definitions a bit easier. And
get rid of flow-mono since we don’t really need it and it was failing
silently when building flow-typed definitions.

And fixed a definition in WorldviewContext with Audrey’s help.

Also updated the readme.

Test plan: Flow works!
  • Loading branch information
janpaul123 authored Dec 14, 2018
1 parent 8f7c653 commit 01c76a4
Show file tree
Hide file tree
Showing 85 changed files with 3,082 additions and 6,781 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ webviz is a collection of packages for visualizing 2D and 3D views on the web.

## Flow

- `npm flow-mono` to set up symlink for flow (reload the editor or recompile the component package if flow can not locate the module)
- `npm flow-mono-install` to update local flow-typed cache and parallel install in all packages
- `npm run flow` to run Flow.
- `npm run flow-typed-rebuild` to update the flow-typed definitions (any time when changing packages).

## Testing

Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@babel/cli_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: c7350111bb8d1ce7ea1d0a78b76eb104
// flow-typed version: <<STUB>>/@babel/cli_v^7.1.5/flow_v0.86.0
// flow-typed signature: e848a123b0b132674e9fef4d498a6975
// flow-typed version: <<STUB>>/@babel/cli_v^7.1.5/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@babel/core_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: c15bb19e57d305248ae6ca47d545a24d
// flow-typed version: <<STUB>>/@babel/core_v^7.1.6/flow_v0.86.0
// flow-typed signature: 1effa075e42d0b9f6ad4e24551c990f4
// flow-typed version: <<STUB>>/@babel/core_v^7.2.0/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@babel/plugin-proposal-class-properties_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: bc5a5817352e11f4835613df7fd29709
// flow-typed version: <<STUB>>/@babel/plugin-proposal-class-properties_v^7.1.0/flow_v0.86.0
// flow-typed signature: 60cfb5f11d6bca7148436e8960704111
// flow-typed version: <<STUB>>/@babel/plugin-proposal-class-properties_v^7.2.1/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@babel/plugin-syntax-dynamic-import_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 2595ff88c5d93a9db7b9e5983dea0386
// flow-typed version: <<STUB>>/@babel/plugin-syntax-dynamic-import_v^7.0.0/flow_v0.86.0
// flow-typed signature: a22e8a8941404b205b83b25f014c045a
// flow-typed version: <<STUB>>/@babel/plugin-syntax-dynamic-import_v^7.2.0/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// flow-typed signature: 415b828e2d556d92437a144a464b40aa
// flow-typed version: <<STUB>>/@babel/plugin-proposal-export-default-from_v^7.0.0/flow_v0.86.0
// flow-typed signature: ab59f0b892a2691e909f1a79835b168b
// flow-typed version: <<STUB>>/@babel/plugin-transform-modules-commonjs_v^7.2.0/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
*
* '@babel/plugin-proposal-export-default-from'
* '@babel/plugin-transform-modules-commonjs'
*
* Fill this stub out by replacing all the `any` types.
*
Expand All @@ -13,7 +13,7 @@
* https://github.com/flowtype/flow-typed
*/

declare module '@babel/plugin-proposal-export-default-from' {
declare module '@babel/plugin-transform-modules-commonjs' {
declare module.exports: any;
}

Expand All @@ -22,11 +22,11 @@ declare module '@babel/plugin-proposal-export-default-from' {
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/plugin-proposal-export-default-from/lib/index' {
declare module '@babel/plugin-transform-modules-commonjs/lib/index' {
declare module.exports: any;
}

// Filename aliases
declare module '@babel/plugin-proposal-export-default-from/lib/index.js' {
declare module.exports: $Exports<'@babel/plugin-proposal-export-default-from/lib/index'>;
declare module '@babel/plugin-transform-modules-commonjs/lib/index.js' {
declare module.exports: $Exports<'@babel/plugin-transform-modules-commonjs/lib/index'>;
}
39 changes: 39 additions & 0 deletions flow-typed/npm/@babel/plugin-transform-runtime_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// flow-typed signature: 5157c8be7b89e2e07ed300b2454cf1ad
// flow-typed version: <<STUB>>/@babel/plugin-transform-runtime_v^7.2.0/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
*
* '@babel/plugin-transform-runtime'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@babel/plugin-transform-runtime' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/plugin-transform-runtime/lib/definitions' {
declare module.exports: any;
}

declare module '@babel/plugin-transform-runtime/lib/index' {
declare module.exports: any;
}

// Filename aliases
declare module '@babel/plugin-transform-runtime/lib/definitions.js' {
declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/definitions'>;
}
declare module '@babel/plugin-transform-runtime/lib/index.js' {
declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/index'>;
}
144 changes: 0 additions & 144 deletions flow-typed/npm/@babel/preset-env_vx.x.x.js

This file was deleted.

4 changes: 2 additions & 2 deletions flow-typed/npm/@babel/preset-flow_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: bc8bd9ba996d71340ef1ed75f9151c9f
// flow-typed version: <<STUB>>/@babel/preset-flow_v^7.0.0/flow_v0.86.0
// flow-typed signature: edb1e58212bd23fa6778c1a2d953961c
// flow-typed version: <<STUB>>/@babel/preset-flow_v^7.0.0/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@babel/preset-react_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 753a9348b2e33978494fef4718264062
// flow-typed version: <<STUB>>/@babel/preset-react_v^7.0.0/flow_v0.86.0
// flow-typed signature: 8771e240d32de87e2d4397b667a0ea82
// flow-typed version: <<STUB>>/@babel/preset-react_v^7.0.0/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@mdx-js/loader_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 43b9b92b00ecc34b8ad614528f7e123d
// flow-typed version: <<STUB>>/@mdx-js/loader_v^0.16.4/flow_v0.86.0
// flow-typed signature: dd330441c290551e6bdeabf85daf607d
// flow-typed version: <<STUB>>/@mdx-js/loader_v^0.16.6/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
59 changes: 0 additions & 59 deletions flow-typed/npm/@mdx-js/mdx_vx.x.x.js

This file was deleted.

4 changes: 2 additions & 2 deletions flow-typed/npm/@storybook/addon-actions_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d44660e9089d056d1480077584cab20d
// flow-typed version: <<STUB>>/@storybook/addon-actions_v^4.0.12/flow_v0.86.0
// flow-typed signature: bc1242582505f257df3132fca5188648
// flow-typed version: <<STUB>>/@storybook/addon-actions_v^4.0.12/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@storybook/addon-knobs_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 4afee011d63cae4854f2fa5907d2ae73
// flow-typed version: <<STUB>>/@storybook/addon-knobs_v^4.0.12/flow_v0.86.0
// flow-typed signature: f3deecf765c6f94e6570d0fd2c6f23b7
// flow-typed version: <<STUB>>/@storybook/addon-knobs_v^4.0.12/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@storybook/addon-links_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 7740231fa8f04ee0c7b52967b218bb7f
// flow-typed version: <<STUB>>/@storybook/addon-links_v^4.0.12/flow_v0.86.0
// flow-typed signature: 3e0d2bd53496111bd39046c0ed987bd6
// flow-typed version: <<STUB>>/@storybook/addon-links_v^4.0.12/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@storybook/addons_vx.x.x.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 28d0ebc380161030f1bfafff7eefdb7a
// flow-typed version: <<STUB>>/@storybook/addons_v^4.0.12/flow_v0.86.0
// flow-typed signature: 6a00018bbdbd6482e8fdd89d58ff6c0c
// flow-typed version: <<STUB>>/@storybook/addons_v^4.0.12/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Loading

0 comments on commit 01c76a4

Please sign in to comment.