|
@@ -32,11 +32,6 @@ function debounce<T extends (...args: any[]) => any>(
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export interface UIPluginOptions extends PluginOpts {
|
|
|
- replaceTargetContent?: boolean
|
|
|
- direction?: 'ltr' | 'rtl'
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* UIPlugin is the extended version of BasePlugin to incorporate rendering with Preact.
|
|
|
* Use this for plugins that need a user interface.
|
|
@@ -44,6 +39,7 @@ export interface UIPluginOptions extends PluginOpts {
|
|
|
* For plugins without an user interface, see BasePlugin.
|
|
|
*/
|
|
|
class UIPlugin<
|
|
|
+ // eslint-disable-next-line no-use-before-define
|
|
|
Opts extends UIPluginOptions,
|
|
|
M extends Meta,
|
|
|
B extends Body,
|
|
@@ -204,3 +200,9 @@ export type PluginTarget<M extends Meta, B extends Body> =
|
|
|
| typeof BasePlugin
|
|
|
| typeof UIPlugin
|
|
|
| BasePlugin<any, M, B>
|
|
|
+
|
|
|
+export interface UIPluginOptions extends PluginOpts {
|
|
|
+ target?: PluginTarget<any, any>
|
|
|
+ replaceTargetContent?: boolean
|
|
|
+ direction?: 'ltr' | 'rtl'
|
|
|
+}
|