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

radekmie/meteor-flow-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ 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);

Releases

No releases published

Packages

No packages published