/** * 小程序错误对象,错误对象为纯对象,没有继承原生Error类. * * @template C Type of error code, 错误码通常为number类型, 不同的api有不同的错误码. * @see https://opendocs.alipay.com/mini/00nmrr */ interface IError { /** * 错误码. */ error: C; /** * 错误消息. */ errorMessage: string; } export type { IError };