Skip to content

Typescript: Also allow undefined for Option<T>? #10

@Simon-Laux

Description

@Simon-Laux

currently its translated to T | null, which is not very convenient for functions with optional arguments.
actually it already accepts undefined, just the typescript types don't allow it yet.

example:

// in js I can do:
await client.getChatlistEntries(3)
// but in ts I need to do this:
await client.getChatlistEntries(3, null, null, null)

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