Re:TypeScript is terrible for library developers
by spiralx on Wednesday August 24, 2022 @12:45AM
(#32575096)
You can use recursion and template types to type some pretty complex string values now - I've seen cut down parsers for both SQL and TS written just via TS types which is madness but does show what can be done.
Whether the effort is worth it is, however, a totally different question to whether it's possible.
Whether the effort is worth it is, however, a totally different question to whether it's possible.