2 ms·
#1 and #3 can be solved by using TypeScript types to define the schema of your JSON. IMO they're readable enough to serve #2 too. Before someone mentions "JSO
by xsmasher 7y ago
#1 and #3 can be solved by using TypeScript types to define the schema of your JSON.
IMO they're readable enough to serve #2 too.
Before someone mentions "JSON schema" - I've tried to use them, and they're difficult to write and impossible to read. Reading/writing TypeScript types are a dream in comparison.