vben
2020-11-10 4ff6b73c2bb57764db2bcd8212d82f028e25e36d
src/types/global.d.ts
@@ -9,6 +9,7 @@
}
declare function parseInt(s: string | number, radix?: number): number;
declare function parseFloat(string: string | number): number;
declare type Dictionary<T> = Record<string, T>;
@@ -26,14 +27,19 @@
declare type Indexable<T = any> = {
  [key: string]: T;
};
declare type Hash<T> = Indexable<T>;
// declare type DeepPartial<T> = {
//   [P in keyof T]?: T[P] extends (infer U)[]
//     ? RecursivePartial<U>[]
//     : T[P] extends object
//     ? RecursivePartial<T[P]>
//     : T[P];
// };
declare type DeepPartial<T> = {
  [P in keyof T]?: T[P] extends (infer U)[]
    ? RecursivePartial<U>[]
    : T[P] extends object
    ? RecursivePartial<T[P]>
    : T[P];
  [P in keyof T]?: DeepPartial<T[P]>;
};
declare type SelectOptions = {