Re:TypeScript is terrible for library developers
by cogman10 on Tuesday August 23, 2022 @04:54PM
(#32571359)
Agree, 100%. Make your function definition `foo(foo: Foo)` not `foo<T extends comparable | int | Bar>(foo: T)` Flexibility is the enemy of a type system and library design in general.
[ Parent
| on HN ]
There are no comments on this comment yet.