doc/option-types: Move nullOr to Union types

This commit is contained in:
Robert Hensing 2024-01-28 16:25:36 +01:00
parent 1ad30772ea
commit 6949bc21ce
1 changed files with 5 additions and 5 deletions

View File

@ -299,6 +299,11 @@ If some values are instances of more than one of the types, it is not possible t
`with types; oneOf [ int str bool ]`. Multiple definitions cannot be
merged.
`types.nullOr` *`t`*
: `null` or type *`t`*. Multiple definitions are merged according to
type *`t`*.
## Sum types {#sec-option-types-sums}
@ -353,11 +358,6 @@ Composed types are types that take a type as parameter. `listOf
returned instead for the same `mkIf false` definition.
:::
`types.nullOr` *`t`*
: `null` or type *`t`*. Multiple definitions are merged according to
type *`t`*.
`types.uniq` *`t`*
: Ensures that type *`t`* cannot be merged. It is used to ensure option