encore
encore copied to clipboard
TypeScript client codegen: generate | null for optional pointer fields
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.
agree with that, field?: string | null is correct format
This will be addressed in #2163