fast-safe-stringify
fast-safe-stringify copied to clipboard
Typescript definition misses undefined return type
The follow example returns undefined
:
import safeStringify from "fast-safe-stringify";
safeStringify(undefined) // -> returns undefined
But the type definition only specifies string
as return type, we should update it to string | undefined
instead.