@soulwallet/decoder / Modules / Err
Defines an Err class, representing a failed operation result.
Export
Name |
---|
T |
E |
• new Err<T
, E
>(error
): Err
<T
, E
>
Creates an instance of Err.
Name |
---|
T |
E |
Name | Type |
---|---|
error |
E |
Err
<T
, E
>
Memberof
Err
soulwallet-result/lib.esm/Result.d.ts:67
• Private
Readonly
_error: any
soulwallet-result/lib.esm/Result.d.ts:61
• get
ERR(): E
Gets the error.
E
Memberof
Err
soulwallet-result/lib.esm/Result.d.ts:83
• get
OK(): T
Gets the successful result value.
T
Memberof
Err
soulwallet-result/lib.esm/Result.d.ts:75
▸ isErr(): boolean
boolean
{boolean}
Memberof
Err
soulwallet-result/lib.esm/Result.d.ts:97
▸ isOk(): boolean
boolean
{boolean}
Memberof
Err
soulwallet-result/lib.esm/Result.d.ts:90