mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-16 19:22:27 +08:00
2.0.0
This commit is contained in:
6
types/global.d.ts
vendored
6
types/global.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user