josdejong / lossless-json

Parse JSON without risk of losing numeric information
MIT License
430 stars 28 forks source link

fix: replace `JavaScriptValue` with `unknown`, which is more accurate #251

Closed josdejong closed 1 year ago

josdejong commented 1 year ago

Using JavaScriptValue is just misleading, the type can be anything when a reviver is used.

See #250

⚠️This is a breaking change in the types, need to publish as a major version!⚠️