We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
context()
2 parents 4d6cd8d + 77d6048 commit bce6d9aCopy full SHA for bce6d9a
src/NodeComponent.ts
@@ -37,7 +37,7 @@ export abstract class NodeComponent<T extends Node> {
37
* Run a function in the context of this component
38
* @param fn Provides this component as the first argument and `this`.
39
*/
40
- public context(fn: (this: this, component: this) => this): this {
+ public context(fn: (this: this, component: this) => any): this {
41
fn.call(this, this);
42
return this;
43
}
0 commit comments