This commit is contained in:
ahjung
2024-09-14 22:39:11 +08:00
parent 1ae5372396
commit 7a62de39c2
62 changed files with 1996 additions and 2938 deletions

6
types/global.d.ts vendored
View File

@@ -30,6 +30,12 @@ declare global {
-readonly [P in keyof T]: T[P];
};
declare interface InResult<T = any> {
code: number;
message: string;
result: T;
}
declare type Nullable<T> = T | null;
declare type NonNullable<T> = T extends null | undefined ? never : T;
declare type Recordable<T = any> = Record<string, T>;