UNPKG

@ng1005/chrome-extension-common

Version:

chrome扩展通用库--消息与storage

47 lines (46 loc) 1.04 kB
import { EventBusDemo } from "../message/EventBusDemo"; export declare class InjectAjaxBus extends EventBusDemo { listener(): void; /** * 提交到上级方便直接处理 * @param type * @param args */ $emitSuper(type: string, ...args: any): Promise<any>; /** * 提交到 * @param type * @param args */ $emit(type: string, ...args: any): Promise<any>; /** * 提交需要获取请求列表 * @param args */ $emitGetList(...args: any): Promise<any>; /** * 提交 * @param args */ $emitOnRequest(...args: any): Promise<any>; /** * 提交 * @param args */ $emitOnResponse(...args: any): Promise<any>; /** * 获取列表 * @param callback */ getList(callback: Function): void; /** * 发起请求时调用 * @param callback */ onRequest(callback: Function): void; /** * 响应时调用 * @param callback */ onResponse(callback: Function): void; }