Skip to content

Commit

Permalink
Merge pull request #672 from revolist/types-rv-plugin
Browse files Browse the repository at this point in the history
feat: plugin type improvements
  • Loading branch information
revolist authored Jan 11, 2025
2 parents ca9ebe4 + f8eaedc commit e3c4d10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 1 files
+25 −17 pro/ai.md
4 changes: 2 additions & 2 deletions src/plugins/base.plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { h } from '@stencil/core';
import type { PluginProviders, PluginBaseComponent, RevoGridCustomEvent } from '..';
import type { PluginProviders, PluginBaseComponent } from '../types';


export type WatchConfig = { immediate: boolean };
Expand All @@ -20,7 +20,7 @@ export class BasePlugin implements PluginBaseComponent {
*/
addEventListener<K extends keyof HTMLRevoGridElementEventMap>(
eventName: K,
callback: (this: BasePlugin, e: RevoGridCustomEvent<HTMLRevoGridElementEventMap[K]>) => void,
callback: (this: BasePlugin, e: CustomEvent<HTMLRevoGridElementEventMap[K]>) => void,
) {
this.revogrid.addEventListener(eventName as string, callback);
this.subscriptions[eventName as string] = callback;
Expand Down

0 comments on commit e3c4d10

Please sign in to comment.