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
Instead this results in a typescript error similar to this one: Type '{ service: string; nameAs: string; parentField: string; childField: string; }[]' has no properties in common with type 'Partial<PopulateSchema>'
Hi.
Description
The type definition for the
populate
hook does not correspond to the provided documents.In the docs here, it says
include
Array< Object > or Object
Which would mean you would be able to do
Instead this results in a typescript error similar to this one:
Type '{ service: string; nameAs: string; parentField: string; childField: string; }[]' has no properties in common with type 'Partial<PopulateSchema>'
The problem
I believe this line is the problem.
feathers-hooks-common/types/index.d.ts
Line 349 in e4a8d80
The proposed fix
It should look like
The text was updated successfully, but these errors were encountered: