Skip to content

Commit

Permalink
v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaSh committed Jul 15, 2024
1 parent cd07537 commit 00b316d
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 160 deletions.
6 changes: 4 additions & 2 deletions dist/veloxi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ declare class App {
static create(): App;
constructor();
addPlugin<TConfig extends PluginConfig = PluginConfig, TPluginApi extends PluginApi = PluginApi>(pluginFactory: PluginFactory<TConfig, TPluginApi>, config?: TConfig): void;
updatePlugin<TConfig extends PluginConfig = PluginConfig, TPluginApi extends PluginApi = PluginApi>(pluginFactory: PluginFactory<TConfig, TPluginApi>, config?: TConfig): void;
reset(pluginName?: string, callback?: () => void): void;
destroy(pluginName?: string, callback?: () => void): void;
getPlugin<TPluginApi extends PluginApi>(pluginFactory: PluginFactory<PluginConfig> | string, pluginKey?: string): TPluginApi;
getPlugins<TPluginApi extends PluginApi>(pluginFactory: PluginFactory<PluginConfig> | string, pluginKey?: string): TPluginApi[];
onPluginEvent<TEvent>(pluginFactory: PluginFactory, EventCtor: new (eventData: TEvent) => TEvent, listener: (eventData: TEvent) => void): void;
onPluginEvent<TPlugin extends PluginFactory<any, any>, TEvent>(pluginFactory: TPlugin, EventCtor: new (eventData: TEvent) => TEvent, listener: (eventData: TEvent) => void, pluginKey?: string): void;
removePluginEventListener<TEvent>(pluginFactory: PluginFactory, EventCtor: new (eventData: TEvent) => TEvent, listener: (eventData: TEvent) => void): void;
run(): void;
ready<TPluginApi extends PluginApi>(pluginName: string, callback: ReadyCallback<TPluginApi>): void;
Expand Down Expand Up @@ -627,7 +628,8 @@ declare class Registry {
getPluginByName(pluginName: string, pluginKey?: string): IPlugin | undefined;
getPluginsByName(pluginName: string, pluginKey?: string): IPlugin[];
hasPlugin<TConfig extends PluginConfig = PluginConfig, TPluginApi extends PluginApi = PluginApi>(pluginFactory: PluginFactory<TConfig, TPluginApi>): boolean;
createPlugin<TConfig extends PluginConfig = PluginConfig, TPluginApi extends PluginApi = PluginApi>(pluginFactory: PluginFactory<TConfig, TPluginApi>, eventBus: EventBus, config?: TConfig): IPlugin<TConfig, TPluginApi>;
createPlugin<TConfig extends PluginConfig = PluginConfig, TPluginApi extends PluginApi = PluginApi>(pluginFactory: PluginFactory<TConfig, TPluginApi>, eventBus: EventBus, config?: TConfig, forUpdate?: boolean): IPlugin<TConfig, TPluginApi>;
updatePlugin<TConfig extends PluginConfig = PluginConfig, TPluginApi extends PluginApi = PluginApi>(pluginFactory: PluginFactory<TConfig, TPluginApi>, eventBus: EventBus, config?: TConfig): IPlugin<TConfig, TPluginApi>;
getViews(): ReadonlyArray<CoreView>;
createView(domEl: HTMLElement, name: string, layoutId?: string): CoreView;
assignViewToPlugin<TConfig extends PluginConfig = PluginConfig, TPluginApi extends PluginApi = PluginApi>(view: View, plugin: IPlugin<TConfig, TPluginApi>): void;
Expand Down
Loading

0 comments on commit 00b316d

Please sign in to comment.