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
import{MiniSignal}from"mini-signals";constnoParamSignal=newMiniSignal<never>();noParamSignal.add(()=>console.log(`recieved`));//Argument of type '[]' is not assignable to parameter of type 'never'.ts(2345)noParamSignal.dispatch();
I believe the general solution may be to switch the T generic from:
Textendsany[]=any[]
to
Textendsany[]|void=void
but this is complicated by the fact that the dispatch method expects an array (due to it's use of the spread syntax)
The text was updated successfully, but these errors were encountered:
example:
I believe the general solution may be to switch the
T
generic from:to
but this is complicated by the fact that the
dispatch
method expects an array (due to it's use of the spread syntax)The text was updated successfully, but these errors were encountered: