Flow: I still need $Supertype

Created on 16 Dec 2018  路  3Comments  路  Source: facebook/flow

I use $Supertype in typed contracts. And this is the only way to make this and this code work. What should I do after $Supertype is removed? Help me.

Most helpful comment

I just removed $SuperType from typed-contracts in v2.0.0.

All 3 comments

Did you changed your mind?

I just removed $SuperType from typed-contracts in v2.0.0.

$Supertype was the original way we (unsoundly) gave some sort of support for variance. Now, you can mark the type parameter contravariant using - to use the behavior $Supertype gives you in a sound way.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mjj2000 picture mjj2000  路  3Comments

john-gold picture john-gold  路  3Comments

jamiebuilds picture jamiebuilds  路  3Comments

funtaps picture funtaps  路  3Comments

tp picture tp  路  3Comments