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
On a fresh feathersjs app, generate a new service using MongoDB then check out the typings of the data and params properties (possibly more) within context, in a hook for example:
This commit adds the update method prototype to the MongoDBService class in index.ts. This allows the update method to be used with the correct typings. This is related to issue feathersjs#3485
Steps to reproduce
On a fresh feathersjs app, generate a new service using MongoDB then check out the typings of the
data
andparams
properties (possibly more) within context, in a hook for example:context.params
andcontext.data
are typedany
.It seems that the issue came from this two types in
@feathersjs/feathers/lib/declarations.d.ts
:MongoDBService
doesn't extends ServiceInterface.Possible fix
I managed to fix the problem by adding this prototype to
MongoDBService
in@feathersjs/mongodb/lib/index.d.ts
, idk if it can break something:Expected behavior
Correct typings for context properties.
System configuration
Here is the dependencies:
The text was updated successfully, but these errors were encountered: