I am trying to use feather-pinia v4 with feathersjs v5.
But I have some typescript warnings in vscode.
import { client } from '@/feathersClient'
import { createPiniaClient } from 'feathers-pinia'
import { getActivePinia } from 'pinia'
export const api = createPiniaClient(client, {
pinia: getActivePinia(),
idField: '_id'
})
It shows me :
Exported variable 'api' has or is using name 'AppExtensions' from external module "path/to/node_modules/feathers-pinia/dist/create-pinia-client" but cannot be named.ts(4023)
const api: Application<CreatePiniaServiceTypes<ServiceTypes>, any> & AppExtensions
And indeed it seems like types are not exported in create-pinia-client.ts
I think that can be resolved by simply ensuring that every type used in exported methods is also exported.
Hey,
I am trying to use feather-pinia v4 with feathersjs v5. But I have some typescript warnings in vscode.
It shows me :
And indeed it seems like types are not exported in
create-pinia-client.ts
I think that can be resolved by simply ensuring that every type used in exported methods is also exported.
Cheers