fast-safe-stringify icon indicating copy to clipboard operation
fast-safe-stringify copied to clipboard

Typescript definition misses undefined return type

Open zlk89 opened this issue 2 years ago • 0 comments

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.

zlk89 avatar May 18 '22 22:05 zlk89