Skip to content

[Discussion] parse, toPlainJson, toPlainArray, toPlainMap, toPlainSet should not return undefined #166

@MatthiasKunnen

Description

@MatthiasKunnen

Returning undefined instead of throwing an error is an old approach and quite annoying because it requires a !== undefined check or non-null assertion on every call.

I would like these methods to throw instead of returning undefined.

This will not change that, for example, array elements that fail to deserialize get substituted with undefined.

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