Skip to content

TypeScript client codegen: generate | null for optional pointer fields #2124

@ravilamichhane

Description

@ravilamichhane

when encore generates typescript types for web clients, pointer fields (e.g. *string) marked as optional are currently generated as field?: string. since these fields can be nil in go (→ null in json), it will be more type safe if the generated type instead be field?: string | 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