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 Nullable = T | null; declare type NonNullable = T extends null | undefined ? never : T; declare type RefType = T | null; declare type CustomizedHTMLElement = HTMLElement & T; declare type Indexable = { [key: string]: T; }; declare type Recordable = Record; declare type ReadonlyRecordable = { readonly [key: string]: T; }; declare type Hash = Indexable; declare type DeepPartial = { [P in keyof T]?: DeepPartial; }; 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; type IsSame = A | B extends A & B ? true : false;