News for hackers. Stuff that matters.
Re:Exploring Flow, Facebook's Type Checker for JavaScript by jimmyhmiller on Sunday January 04, 2015 @05:56PM (#8836227)
I found one other way to use types across modules.

    /* @flow */  
    var Person;  
    type Person = {name: {first: string; last: string;}; isActive: boolean;}  
    module.exports.Person = Person
Just by writing that var you can use the type across modules.

There are no comments on this comment yet.