edn-data icon indicating copy to clipboard operation
edn-data copied to clipboard

TypeScript return type of parse function can depend on the passed options

Open jorinvo opened this issue 3 years ago • 0 comments

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.

jorinvo avatar Aug 19 '20 06:08 jorinvo