Skip to content

Commit 0415aec

Browse files
Merge pull request #410 from yuretz/master
Added return type inference for the Component.for() utility
2 parents 60789d2 + 86b0eda commit 0415aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
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)