我智商爆棚
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
wozhishangbaopeng/ryw.d.ts

59 lines
1.5 KiB

/*
* @Author: YeeChan
* @Date: 2020-12-21 19:51:34
* @Description:
*/
/****************************************************
* 事件绑定接口 带this对象
*****************************************************/
declare class FMListener {
callback: Function;
target: any;
}
/**
* 添加一个绑定接口
* @param callback //对象回调方法
* @param target //对象本身
* @returns FMListener
*/
declare function handleFM_custom(callback: Function, target: any): FMListener;
/**
* call一个绑定接口
* @param FMListener
* @param ...argArray
* @returns any
*/
declare function callFM_custom(inter: FMListener, ...argArray: any[]): any;
//日志
declare class LogUtils {
/** log状态 */
private static _logStatus_custom: boolean = true;
/** 设置日志状态 */
public static setLogStatus(flag: boolean): void;
/**调试日志*/
public static log_custom(message?: any, ...optionalParams: any[]): void;
/**输出日志*/
public static info_custom(message?: any, ...optionalParams: any[]): void;
/**警告日志*/
public static warn_custom(message?: any, ...optionalParams: any[]): void;
/**错误日志*/
public static error_custom(message?: any, ...optionalParams: any[]): void;
/**网络日志*/
public static networkLog_custom(message?: any, ...optionalParams: any[]): void;
/**网络错误日志*/
public static networkError_custom(message?: any, ...optionalParams: any[]): void;
/** 获取完全时间 */
public static getFullTime_custom(): string;
}