See discussion.
- Clone into your
flow-typed
directory - Remove
package.json
andpackage-lock.json
- Update
.flowconfig
(optional):
[ignore]
.*/.meteor/.*\.json
.*/.npm/.*\.json
[options]
module.name_mapper='^\/\(.*\)$' -> '<PROJECT_ROOT>/\1'
module.name_mapper='^meteor\/\(.*\):\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/server/packages/\1_\2'
module.name_mapper='^meteor\/\(.*\):\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/web.browser/packages/\1_\2'
module.name_mapper='^meteor\/\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/server/packages/\1'
module.name_mapper='^meteor\/\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/web.browser/packages/\1'
Collection2 needs type casting, for example
const Posts: Aldeed$Collection2<PostProps> = (new Mongo.Collection('documents'): any);