Type aliases
Some
Some<
T
> =Readonly
<{__option
:"Some"
;value
:T
; }>
Represents an Option that contains a value.
This type mirrors Rust’s Some(T)
, indicating that a value is present.
For more details, see Option.
Type Parameters
Type Parameter | Description |
---|---|
T | The type of the contained value. |
Example
Creating a Some
value.