WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 18921334

(no title)

jamesisaac | 7 years ago

Ah I see. That can be achieved since Flow 0.51 with opaque types[1][2]. It seems like TypeScript hasn't yet caught up with this functionality[3].

[1] https://medium.com/flow-type/hiding-implementation-details-w...

[2] https://flow.org/en/docs/types/opaque-types/

[3] https://github.com/Microsoft/TypeScript/issues/15807#issueco...

discuss

order

tigershark|7 years ago

Yup that seems to help.
powered by hn/api // news.ycombinator.com