Skip to content

undefined converted to void in POST body types #25

@asktree

Description

@asktree

Let's say my POST query has an optional parameter:

const myBody = {arg: "" as string | undefined}

The driver will instead expect a body of type

{arg: string | void}

This is pretty annoying. I can't tell if it's an unknown bug, or some weird TypeScript thing that you don't have a good workaround for.

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