You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to extend a template class with Hookable, the "callHook" method always returns a type error. It seems it always thinks there's an array ([]) argument passed as second parameter.
Environment
hookable: v5.5.3
node: v18.18.0
Reproduction
https://stackblitz.com/edit/hookable-extend-issue?file=src%2Fmain.ts&terminal=dev
Describe the bug
When trying to extend a template class with Hookable, the "callHook" method always returns a type error. It seems it always thinks there's an array (
[]
) argument passed as second parameter.The following code:
Gives the following Typescript error for
this.callHook('test');
:Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: