mithril.js icon indicating copy to clipboard operation
mithril.js copied to clipboard

Add Flow support

Open soulofmischief opened this issue 7 years ago • 2 comments

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.

soulofmischief avatar Sep 24 '18 19:09 soulofmischief

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.

charlag avatar Feb 03 '19 06:02 charlag

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.

dead-claudia avatar Feb 04 '19 07:02 dead-claudia