Skip to content

Commit

Permalink
Added return type inference for the Component.for() utility
Browse files Browse the repository at this point in the history
  • Loading branch information
YK committed Oct 4, 2022
1 parent 60789d2 commit 86b0eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -3,7 +3,7 @@ export type BoundTemplateFunction<T extends Element | ShadowRoot> = TemplateFunc
export type WiredTemplateFunction = TemplateFunction<any>;

export declare class Component<T = {}> {
static for(context: object, identity?: any): Component;
static for<TComponent>(this: new() => TComponent, context: object, identity?: any): TComponent;
handleEvent(e: Event): void;
html: WiredTemplateFunction;
svg: WiredTemplateFunction;
Expand Down

0 comments on commit 86b0eda

Please sign in to comment.