ErrorsValues and types · rule
syntax.nullable_type
Nullable type written in another language's form.
Area 2, Values and types; not declinable; the next step is usually the agent's.
A type that may hold none is written with ?.
type ProductName = Text { min_length: 1}type Listing = Object { name: ProductName subtitle: ProductName | null}
error Jadpo writes ProductName?, not ProductName | null
--> main.jadpo:7:27
|7 | subtitle: ProductName | null | ^^^^^^ write `ProductName?`
- reason
T | nullandT | undefinedare types that may be missing in TypeScript, andT | NoneandOptional[T]in Python; Jadpo writesT?, which holds aTornone.- next
- Write
ProductName?(agent) - rule
- syntax.
nullable_ type - help
- https://jadpo.
dev/docs/errors/syntax. nullable_ type
Markdown for agents: /docs/errors/syntax.nullable_type.md.Built from Jadpo main at aee2e8f.