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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user