// basic.d.ts export interface AsyncCallback { (err: BusinessError, data: T): void; } export interface BusinessError extends Error { code: number; } export interface ErrorCallback { (err: BusinessError): void; } export interface Callback { (data: T): void; }