Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Latest commit

 

History

History
29 lines (22 loc) · 995 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 995 Bytes

⚡ Meteor Flow types ⚡

See discussion.

Usage

  1. Clone into your flow-typed directory
  2. Remove package.json and package-lock.json
  3. 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'

aldeed:collection2

Collection2 needs type casting, for example

const Posts: Aldeed$Collection2<PostProps> = (new Mongo.Collection('documents'): any);