Skip to main content

Interface: Ok<T>

result/src.Ok

license MIT

copyright 2020 1Computer

The computation is successful.

Type parameters

NameDescription
TType of results.

Properties

error

Optional Readonly error: undefined

Defined in

projects/utilities/packages/result/src/lib/Lexure.ts:19


success

Readonly success: true

If this is an Ok, this is true.

Defined in

projects/utilities/packages/result/src/lib/Lexure.ts:12


value

Readonly value: T

The resulting value, which only exists on an Ok.

Defined in

projects/utilities/packages/result/src/lib/Lexure.ts:17