Const
Result constant for void or (). Can be used anywhere due to immutability.
void
()
1.4.0
function doSomething(): Result<void, Error> { return RESULT_VOID;}const result: Result<void, string> = RESULT_VOID;RESULT_VOID.intoOk(); // Safe extraction (returns undefined) Copy
function doSomething(): Result<void, Error> { return RESULT_VOID;}const result: Result<void, string> = RESULT_VOID;RESULT_VOID.intoOk(); // Safe extraction (returns undefined)
Result constant for
voidor(). Can be used anywhere due to immutability.