Merge remote-tracking branch 'misskey-dev/develop' into io
This commit is contained in:
@@ -2237,7 +2237,7 @@ type IResponse = operations['i']['responses']['200']['content']['application/jso
|
||||
type IRevokeTokenRequest = operations['i/revoke-token']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
function isAPIError(reason: any): reason is APIError;
|
||||
function isAPIError(reason: Record<PropertyKey, unknown>): reason is APIError;
|
||||
|
||||
// @public (undocumented)
|
||||
type ISigninHistoryRequest = operations['i/signin-history']['requestBody']['content']['application/json'];
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -15,10 +15,10 @@ type Overwrite<T, U extends { [Key in keyof T]?: unknown }> = Omit<
|
||||
keyof U
|
||||
> & U;
|
||||
|
||||
type SwitchCase = {
|
||||
type SwitchCase<Condition = unknown, Result = unknown> = {
|
||||
$switch: {
|
||||
$cases: [any, any][],
|
||||
$default: any;
|
||||
$cases: [Condition, Result][],
|
||||
$default: Result;
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user