marshallswain / feathers-pinia

Connect your Feathers API to the elegant data store for Vue
52 stars 22 forks source link

service api types do not include feathers-pinia specific methods #137

Open ha6755ad opened 1 year ago

ha6755ad commented 1 year ago

When I call ex: api.service('ads')['name'] in a .ts file, I cannot get it to recognize any types outside of the standard feathers Application type. So if I call api.service('ads').findInStore - I get a type error that findInStore is not found on type Application<...>. I cannot pass a generic argument to createPiniaClient that seems to satisfy this issue. Possibly there is a simple solution to this issue, but I have exhausted reasonable efforts to solve it. Any help is appreciated.

Edit: I should add that I do have the same version of @feathersjs/** packages installed as is in the installed feathers-pinia package.

marshallswain commented 1 year ago

This issue would require a minimal reproduction to solve.