@zuiwoxing/posisi
Version:
一款基于typescript 前端控制组件,包括(IOC,AOP,Feign,Logger,Util等)
29 lines (28 loc) • 574 B
TypeScript
import { ReqInfo } from "../../feign/model/Meta";
/**
*@desc 解码器
*@author liudejian
*@date 2023-12-24 10:22
**/
export interface FeignDecode {
/**
* 对象反序列化
* @param data
*/
decode(data: any): any;
/**
* 异常处理
* @param error
*/
error(error: any): any;
/**
* 最终调用
*/
finally(reqInfo: ReqInfo): any;
}
/**
* 判断是否是 FeignDecode 实例
* @param object
*/
declare const instanceOfFeignDecode: (object: any) => object is FeignDecode;
export { instanceOfFeignDecode };