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
Vapi.getStore is declared as returning a Store object, but if you pass createStateFn: false, that's not the case.
First of all, I think that API is silly. There should be a different function, maybe getStoreObject that abstracts this. But, even if you don't agree with that idea, the type definition needs to be updated.
The text was updated successfully, but these errors were encountered:
Could you please elaborate why you think the API is silly? Do you see think the passed config object({ createStateFn: false} is'nt clear enough? Or do you refer to avoid union return types?
Vapi.getStore
is declared as returning aStore
object, but if you passcreateStateFn: false
, that's not the case.First of all, I think that API is silly. There should be a different function, maybe
getStoreObject
that abstracts this. But, even if you don't agree with that idea, the type definition needs to be updated.The text was updated successfully, but these errors were encountered: