2023-06-24 04:13:03 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-02 22:18:30 +00:00
|
|
|
[Home](./index.md) > [firefish-js](./firefish-js.md) > [api](./firefish-js.api.md) > [isAPIError](./firefish-js.api.isapierror.md)
|
2023-06-24 04:13:03 +00:00
|
|
|
|
|
|
|
## api.isAPIError() function
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export declare function isAPIError(reason: any): reason is APIError;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| reason | any | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
2023-07-02 22:18:30 +00:00
|
|
|
reason is [APIError](./firefish-js.api.apierror.md)
|
2023-06-24 04:13:03 +00:00
|
|
|
|