Type Alias EventMap<PluginState, PluginData>

EventMap<PluginState, PluginData>: {
    dataChange: ((data: PluginData, prevData?: PluginData) => void);
    dataLoaded: ((data: PluginData) => void);
    dispose: (() => void);
    stateChange: ((params: StateChangeParams<PluginState>) => void);
}

插件基本事件

Type Parameters

  • PluginState
  • PluginData

Type declaration