feathers-pinia icon indicating copy to clipboard operation
feathers-pinia copied to clipboard

service api types do not include feathers-pinia specific methods

Open ha6755ad opened this issue 1 year ago • 1 comments

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.

ha6755ad avatar Jun 27 '23 00:06 ha6755ad

This issue would require a minimal reproduction to solve.

marshallswain avatar Jul 25 '23 19:07 marshallswain