| | |
| | | } |
| | | |
| | | declare function parseInt(s: string | number, radix?: number): number; |
| | | |
| | | declare function parseFloat(string: string | number): number; |
| | | |
| | | declare type Dictionary<T> = Record<string, T>; |
| | |
| | | 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 = { |