Skip to content

All interfaces have optional keys #37

@dino-rodriguez

Description

@dino-rodriguez

It seems like all the response interfaces have optional keys (along with some being nullable).

Do these both need to be the case, or is specifying the ones as nullable sufficient? It also seems like these are aggressively nullable, so I'm wondering if all those null scenarios are possible.

It seems a bit cumbersome to have to check for the existence of every key in typescript if it's not nullable.

(I know I can use Required to enforce non-optional, but I'm still wondering if there's something worth looking at here).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions