From f8eaedcc3e8a19ade70922bcf0733f7c38f32383 Mon Sep 17 00:00:00 2001 From: maks Date: Sat, 11 Jan 2025 00:27:34 +0000 Subject: [PATCH] feat: plugin type improvements --- docs | 2 +- src/plugins/base.plugin.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs b/docs index 3b56b81f..c19e4f65 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 3b56b81f491dcdb9a380b0fea96a30a73246c9a9 +Subproject commit c19e4f65170e368b012bd03d0f928da376e88323 diff --git a/src/plugins/base.plugin.ts b/src/plugins/base.plugin.ts index e640a088..39ac0679 100644 --- a/src/plugins/base.plugin.ts +++ b/src/plugins/base.plugin.ts @@ -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 }; @@ -20,7 +20,7 @@ export class BasePlugin implements PluginBaseComponent { */ addEventListener( eventName: K, - callback: (this: BasePlugin, e: RevoGridCustomEvent) => void, + callback: (this: BasePlugin, e: CustomEvent) => void, ) { this.revogrid.addEventListener(eventName as string, callback); this.subscriptions[eventName as string] = callback;