2 ms·
Why wouldn't you just make your untyped bag a field of the larger and completely specified object then?
by quotemstr 9y ago
Why wouldn't you just make your untyped bag a field of the larger and completely specified object then?
- djur 9y agoThat's generally not an option if the type in question is part of the interface of an external library. The type systems of Flow and TypeScript are both designed to allow typing of as much existing idiomatic Javascript code as possible.
- RyanCavanaugh 9y ago"Will it be easy for a computer to prove that my API is being called correctly?" is not a question that JavaScript library authors seem to give any thought whatsoever to