From 86b0edab851be5306ebac1df6909dddaabbe38ba Mon Sep 17 00:00:00 2001 From: YK Date: Tue, 4 Oct 2022 13:26:29 +0200 Subject: [PATCH] Added return type inference for the Component.for() utility --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 22946c8..8fe28e6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,7 +3,7 @@ export type BoundTemplateFunction = TemplateFunc export type WiredTemplateFunction = TemplateFunction; export declare class Component { - static for(context: object, identity?: any): Component; + static for(this: new() => TComponent, context: object, identity?: any): TComponent; handleEvent(e: Event): void; html: WiredTemplateFunction; svg: WiredTemplateFunction;