Interface: Ok<T>
license
MIT
copyright
2020 1Computer
The computation is successful.
Type parameters
Name | Description |
---|---|
T | Type of results. |
Properties
error
• Optional
Readonly
error: undefined
Defined in
node_modules/@sapphire/result/dist/lib/Lexure.d.ts:17
success
• Readonly
success: true
If this is an Ok, this is true.
Defined in
node_modules/@sapphire/result/dist/lib/Lexure.d.ts:12
value
• Readonly
value: T
The resulting value, which only exists on an Ok.
Defined in
node_modules/@sapphire/result/dist/lib/Lexure.d.ts:16