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
Property 'create' in type 'Messages' is not assignable to the same property in base type 'Service<Data>'.
Type '(data: Partial<Data>, params?: Params | undefined) => Promise<Data>' is not assignable to type '{ (data: Partial<Data>, params?: Params | undefined): Promise<Data>; (data: Partial<Data>[], params?: Params | undefined): Promise<...>; }'.
Types of parameters 'data' and 'data' are incompatible.
Type 'Partial<Data>[]' has no properties in common with type 'Partial<Data>'
What is the proper way to go about doing this?
I've tried implementing both create functions individually as well, with the same result.
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
-
I have a class using Sequelize that extends
Service
, but can't figure out how to override thecreate
service method.This is my attempt:
From what I can tell, I should be implementing the methods from
Service
->AdapterService
:The Typescript compiler is telling me:
What is the proper way to go about doing this?
I've tried implementing both
create
functions individually as well, with the same result.Beta Was this translation helpful? Give feedback.
All reactions