diff options
| author | Kisaragi <48310258+KisaragiEffective@users.noreply.github.com> | 2024-02-12 11:38:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-12 11:38:16 +0900 |
| commit | b95e25004f87cf0743f4a363cd5ed4a7720ad27d (patch) | |
| tree | afe0f7769102e95e699b243e5fb4ad43c1dee6d3 /packages/misskey-js/src/api.ts | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | misskey-b95e25004f87cf0743f4a363cd5ed4a7720ad27d.tar.gz misskey-b95e25004f87cf0743f4a363cd5ed4a7720ad27d.tar.bz2 misskey-b95e25004f87cf0743f4a363cd5ed4a7720ad27d.zip | |
refactor(msjs): avoid any (part 1) (#13247)
* refactor(msjs): avoid any
* run api extractor
---------
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Co-authored-by: kakkokari-gtyih <daisho7308+f@gmail.com>
Diffstat (limited to 'packages/misskey-js/src/api.ts')
| -rw-r--r-- | packages/misskey-js/src/api.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/misskey-js/src/api.ts b/packages/misskey-js/src/api.ts index 2e85fc2939..134ead0d79 100644 --- a/packages/misskey-js/src/api.ts +++ b/packages/misskey-js/src/api.ts @@ -17,7 +17,7 @@ export type APIError = { info: Record<string, any>; }; -export function isAPIError(reason: any): reason is APIError { +export function isAPIError(reason: Record<PropertyKey, unknown>): reason is APIError { return reason[MK_API_ERROR] === true; } |