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
error is this:
src/repositories/dummy-test.repository.ts(19,3): error TS2344: Type 'DynamicModelCtor<typeof Entity, { id: string; title?: string | undefined; }>' does not satisfy the constraint 'Entity'.
Type 'DynamicModelCtor<typeof Entity, { id: string; title?: string | undefined; }>' is missing the following properties from type 'Entity': getId, getIdObject, toJSON, toObject
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
My requirement is to create a model at runtime. I have followed the steps in this doc https://loopback.io/doc/en/lb4/Dynamic-models-repositories-controllers.html. But now i am getting this error. So, please guide me here.
error is this:
src/repositories/dummy-test.repository.ts(19,3): error TS2344: Type 'DynamicModelCtor<typeof Entity, { id: string; title?: string | undefined; }>' does not satisfy the constraint 'Entity'.
Type 'DynamicModelCtor<typeof Entity, { id: string; title?: string | undefined; }>' is missing the following properties from type 'Entity': getId, getIdObject, toJSON, toObject
thanks,
Beta Was this translation helpful? Give feedback.
All reactions