Skip to content

Commit bce6d9a

Browse files
authored
Fix return type in context() (#33)
2 parents 4d6cd8d + 77d6048 commit bce6d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NodeComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export abstract class NodeComponent<T extends Node> {
3737
* Run a function in the context of this component
3838
* @param fn Provides this component as the first argument and `this`.
3939
*/
40-
public context(fn: (this: this, component: this) => this): this {
40+
public context(fn: (this: this, component: this) => any): this {
4141
fn.call(this, this);
4242
return this;
4343
}

0 commit comments

Comments
 (0)