@adcp/client API Reference - v3.3.3
Documentation
GitHub
npm
Preparing search index...
isErrorOfType
Function isErrorOfType
isErrorOfType
<
T
extends
ADCPError
>
(
error
:
unknown
,
ErrorClass
:
new
(
...
args
:
any
[]
)
=>
T
,
)
:
error
is
T
Type guard to check if an error is a specific ADCP error type
Type Parameters
T
extends
ADCPError
Parameters
error
:
unknown
ErrorClass
:
new
(
...
args
:
any
[]
)
=>
T
Returns
error
is
T
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Documentation
GitHub
npm
@adcp/client API Reference - v3.3.3
Loading...
Type guard to check if an error is a specific ADCP error type