UNPKG

@pisell/pisellos

Version:

一个可扩展的前端模块化SDK框架,支持插件系统

25 lines (24 loc) 871 B
import { PisellCore } from '../types'; export declare class BaseModule { protected defaultName: string; protected defaultVersion: string; name: string; version: string; isSolution: boolean; protected core: PisellCore; constructor(name?: string, version?: string); destroy(): void; checkSaveCache({ cacheId, fatherModule, store, cacheKey, }: { cacheId: string | undefined; fatherModule: string | undefined; store: any; cacheKey: string[]; }): void; effectsOn(eventType: string, callback: (payload: any) => void): () => void; effectsOff(eventType: string, callback: (payload: any) => void): void; effectsOnce(eventType: string, callback: (payload: any) => void): () => void; effectsEmit(eventType: string, payload: any): Promise<{ status: boolean; data: any; }>; }