declare interface Fn { (...arg: T[]): R; } declare interface PromiseFn { (...arg: T[]): Promise; } declare interface IObj { [key: string]: T; [key: number]: T; } declare function parseInt(s: string | number, radix?: number): number; declare function parseFloat(string: string | number): number; declare type Dictionary = Record; declare type Nullable = T | null; declare type RefType = T | null; declare type CustomizedHTMLElement = HTMLElement & T; declare type Indexable = { [key: string]: T; }; declare type Hash = Indexable; declare type DeepPartial = { [P in keyof T]?: DeepPartial; }; // type DeepPartial = T extends Function // ? T // : T extends object // ? { [K in keyof T]?: DeepPartial } // : T; declare type LabelValueOptions = { label: string; value: any; }[]; declare type EmitType = (event: string, ...args: any[]) => void; declare type TargetContext = '_self' | '_blank'; declare type TimeoutHandle = ReturnType; declare type IntervalHandle = ReturnType; declare interface ComponentElRef { $el: T; } declare type ComponentRef = ComponentElRef | null; declare type ElRef = Nullable;