Kind: Function
Source: atloria-monorepo/packages/doc-automation/src/v2/utils/errors.ts
Check if an error is a specific type
Signature
tsfunction isErrorCode(error: unknown, code: ErrorCode): boolean
Parameters
| Name | Type |
|---|---|
error | unknown |
code | ErrorCode |
Returns: boolean
Was this page helpful?