Closed gcbirzan closed 6 years ago
Hey @gcbirzan,
thanks for your bug report. I'll fix this soon.
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?
I'll close this issue. Feel free to reopen it.
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.