Preparing search index...
The search index is not available
pure
pure
@pistonite/pure
result
tryCatch
Function tryCatch
tryCatch
<
T
,
E
=
unknown
>
(
fn
:
()
=>
T
)
:
Result
<
T
,
E
>
Wrap a function with try-catch and return a Result.
Type Parameters
T
E
=
unknown
Parameters
fn
:
()
=>
T
Returns
Result
<
T
,
E
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
pure
Loading...
Wrap a function with try-catch and return a Result.