API.d.ts
declare namespace API { namespace User { interface Exception { cause?: Throwable; localizedMessage?: string; message?: string; stackTrace?: StackTraceElement[]; suppressed?: Throwable[]; } interface RestVo { code?: number; data?: { ... }; exception?: Exception; message?: string; } /** login */ namespace postAuthsLogin { type Query = { /** checkcode */ code?: string; /** phone */ mobile?: string; /** password */ password?: string; /** account */ username?: string; }; type Response = RestVo; } } namespace File { ... } ... }