From ff4e5a7627ebed1aeba2e8051768945c056dcc03 Mon Sep 17 00:00:00 2001 From: Mack Duan Date: Sat, 18 Jun 2022 15:57:18 -0700 Subject: [PATCH] [branch] typescript type Component.config.helpers --- lib/index.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index d477010e..ba6b9b29 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -71,7 +71,7 @@ export interface PanelLifecycleContext { unbindFromComponent?(component: Component): void; } -export interface ConfigOptions { +export interface ConfigOptions { /** Function transforming state object to virtual dom tree */ template(scope?: StateT): VNode; @@ -94,7 +94,7 @@ export interface ConfigOptions; @@ -153,7 +153,8 @@ export class Component< AttrsT = AnyAttrs, AppStateT = unknown, AppT = unknown, - ContextRegistryT = unknown + ContextRegistryT = unknown, + HelpersT extends PanelHelpers = unknown > extends WebComponent { /** The first Panel Component ancestor in the DOM tree; null if this component is the root */ $panelParent: Component; @@ -198,7 +199,7 @@ export class Component< applyStaticStyle(styleSheetText: null | string, options?: {ignoreCache: boolean}): void; /** Defines standard component configuration */ - get config(): ConfigOptions; + get config(): ConfigOptions; /** * Template helper functions defined in config object, and exposed to template code as $helpers.