Skip to content

fromThrowable

fromThrowable<T>(fn): Result<T, string>

Defined in: packages/core/src/result.ts:49

Catch a synchronous throw and turn it into Err with a string message.

T

() => T

Result<T, string>