1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-23 09:54:06 +02:00

Merge branch 'develop' into mahjong

This commit is contained in:
syuilo
2024-02-12 11:50:03 +09:00
1822 changed files with 2406 additions and 1923 deletions

View File

@@ -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;
}

View File

@@ -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;
};
};