declare module "*.vue" { import Vue from "vue"; export default Vue; } interface IAny { [index: string]: any; } interface IError { msg: string; code: number; } interface IBaseResult extends IError { data: T; } interface IRequest { (url: string, data?: any): Promise>; } interface IResult extends Array { 0: IError | null; 1: T; length: 2; }