Skip to content

Support config the behaviours for the option type #228

@rainbowatcher

Description

@rainbowatcher

Hi, Thanks for the amazing project, I'm building a project using Axum and Specta, I've created a request body with optional fields, However, Specta is converting id: Option<i32> to id: number | null, but I'm expecting id?: number. Could you please add support for configuring this behavior in export::ts_with_cfg()?

Or do you have a better idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions