Skip to content

Typescript definition misses undefined return type #63

@zlk89

Description

@zlk89

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions