davidmarkclements / fast-safe-stringify

Safely and quickly serialize JavaScript objects
MIT License
348 stars 27 forks source link

fix: typings when using type module #66

Closed Marsup closed 6 months ago

Marsup commented 6 months ago

This module doesn't work when enabling ESM with TS, see https://arethetypeswrong.github.io/?p=fast-safe-stringify%402.1.1 I just applied their advice.

It might close #65 but I'm not entirely sure.

abetoots commented 2 weeks ago

@mcollina could you release this commit please? ty