Mithril.js: Add Flow support

Created on 24 Sep 2018  路  2Comments  路  Source: MithrilJS/mithril.js

I'd like to see Mithril added to flow-typed.

We could probably just run the TS definitions through flowgen and then clean it up from there.

Most helpful comment

I want to point out that besides generating TS types we have working declarations at Tutanota:
https://github.com/tutao/tutanota/blob/master/flow/libs.js#L16
and we would be willing to upstream them
It's a little bit of a mess right now with multiple definitions overlapping and spread across the file but it could serve as base.

Definitions for stream and lifecycle are below.

All 2 comments

I want to point out that besides generating TS types we have working declarations at Tutanota:
https://github.com/tutao/tutanota/blob/master/flow/libs.js#L16
and we would be willing to upstream them
It's a little bit of a mess right now with multiple definitions overlapping and spread across the file but it could serve as base.

Definitions for stream and lifecycle are below.

PRs for Flow type support will be accepted as long as they work. I do know enough of Flow's type system to get by, but I'm not nearly as knowledgeable of it as I am with TS, so I could review a patch to ensure accuracy, but writing them would be a bit of a struggle.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tivac picture tivac  路  3Comments

simov picture simov  路  4Comments

millken picture millken  路  4Comments

isiahmeadows picture isiahmeadows  路  4Comments

designMoreWeb picture designMoreWeb  路  4Comments