Skip to main content

Module: result/src

Namespaces

Classes

Interfaces

Type Aliases

Option

Ƭ Option<T>: Some<T> | None

Type parameters

NameDescription
T-

Defined in

projects/utilities/packages/result/src/lib/Option.ts:13


Result

Ƭ Result<T, E>: Ok<T> | Err<E>

Type parameters

NameDescription
T-
E-

Defined in

projects/utilities/packages/result/src/lib/Result.ts:14

Variables

none

Const none: None

Defined in

projects/utilities/packages/result/src/lib/Option/None.ts:169

Functions

err

err(): Err<unknown>

Returns

Err<unknown>

Defined in

projects/utilities/packages/result/src/lib/Result/Err.ts:191

err<E>(x): Err<E>

Type parameters

NameDescription
E-

Parameters

NameTypeDescription
xE

Returns

Err<E>

Defined in

projects/utilities/packages/result/src/lib/Result/Err.ts:199


ok

ok(): Ok<unknown>

Returns

Ok<unknown>

Defined in

projects/utilities/packages/result/src/lib/Result/Ok.ts:197

ok<T>(x): Ok<T>

Type parameters

NameDescription
T-

Parameters

NameTypeDescription
xT

Returns

Ok<T>

Defined in

projects/utilities/packages/result/src/lib/Result/Ok.ts:205


some

some<T>(value): Some<T>

Type parameters

Name
T

Parameters

NameType
valueT

Returns

Some<T>

Defined in

projects/utilities/packages/result/src/lib/Option/Some.ts:186