edn-data
edn-data copied to clipboard
TypeScript return type of parse function can depend on the passed options
We could further restrict the return type by parametrizing the function and using a conditional type on the options for parsing the different data types.
This would help a user of the library since they then need less checks on the returned data.