ErrorsValues and types · rule
type.redundant_nullability
Type is already nullable.
Area 2, Values and types; not declinable; the next step is usually the agent's.
type ProductName = Text { max_length: 120}type Listing = Object { subtitle: ProductName?}type ListingPreview = Object { subtitle: Listing.subtitle?}
error Listing.subtitle already permits none
--> main.jadpo:10:15
|10 | subtitle: Listing.subtitle? | ^^^^^^^^^^^^^^^^^ nullable twice
- reason
Listing.subtitletakesnonefrom its declared type; a second?adds nothing.- next
- Remove the extra
?(agent) - rule
- type.
redundant_ nullability - help
- https://jadpo.
dev/docs/errors/type. redundant_ nullability
Markdown for agents: /docs/errors/type.redundant_nullability.md.Built from Jadpo main at aee2e8f.