Skip to content

Commit

Permalink
Merge pull request WebReflection#410 from yuretz/master
Browse files Browse the repository at this point in the history
Added return type inference for the Component.for() utility
  • Loading branch information
WebReflection authored Oct 4, 2022
2 parents 60789d2 + 86b0eda commit 0415aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
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 0415aec

Please sign in to comment.