Skip to content

Latest commit

 

History

History
157 lines (84 loc) · 1.6 KB

File metadata and controls

157 lines (84 loc) · 1.6 KB

@soulwallet/decoder / Modules / Err

Class: Err<T, E>

Defines an Err class, representing a failed operation result.

Export

Type parameters

Name
T
E

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Err<T, E>(error): Err<T, E>

Creates an instance of Err.

Type parameters

Name
T
E

Parameters

Name Type
error E

Returns

Err<T, E>

Memberof

Err

Defined in

soulwallet-result/lib.esm/Result.d.ts:67

Properties

_error

Private Readonly _error: any

Defined in

soulwallet-result/lib.esm/Result.d.ts:61

Accessors

ERR

get ERR(): E

Gets the error.

Returns

E

Memberof

Err

Defined in

soulwallet-result/lib.esm/Result.d.ts:83


OK

get OK(): T

Gets the successful result value.

Returns

T

Memberof

Err

Defined in

soulwallet-result/lib.esm/Result.d.ts:75

Methods

isErr

isErr(): boolean

Returns

boolean

{boolean}

Memberof

Err

Defined in

soulwallet-result/lib.esm/Result.d.ts:97


isOk

isOk(): boolean

Returns

boolean

{boolean}

Memberof

Err

Defined in

soulwallet-result/lib.esm/Result.d.ts:90