Skip to content

Commit 86b0eda

Browse files
author
YK
committed
Added return type inference for the Component.for() utility
1 parent 60789d2 commit 86b0eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export type BoundTemplateFunction<T extends Element | ShadowRoot> = TemplateFunc
33
export type WiredTemplateFunction = TemplateFunction<any>;
44

55
export declare class Component<T = {}> {
6-
static for(context: object, identity?: any): Component;
6+
static for<TComponent>(this: new() => TComponent, context: object, identity?: any): TComponent;
77
handleEvent(e: Event): void;
88
html: WiredTemplateFunction;
99
svg: WiredTemplateFunction;

0 commit comments

Comments
 (0)