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