4 ms·
Agreed! From the article: How do library developers debug their highly dynamic and heavy use of conditional types, overloads? Don’t do that. It dramatically i
by throwaway0asd 4y ago
Agreed! From the article:
How do library developers debug their highly dynamic and heavy use of conditional types, overloads?
Don’t do that. It dramatically increases compile time and results in a maintenance nightmare. Keep types primitive.
In my own code I use type unions of primitives and/or named types. For objects I use interfaces. With that I am able to provides types for about 98% of my code. That left over 2% is generally for extending the global Array type or extending an event.