diff --git a/packages/adapter-commons/src/service.ts b/packages/adapter-commons/src/service.ts index a1f3a6c91f..31822deedf 100644 --- a/packages/adapter-commons/src/service.ts +++ b/packages/adapter-commons/src/service.ts @@ -97,10 +97,6 @@ export class AdapterService implements ServiceMethods { return callMethod(this, '_get', id, params); } - create (data: Partial, params?: Params): Promise; - - create (data: Partial[], params?: Params): Promise; - create (data: Partial | Partial[], params?: Params): Promise { if (Array.isArray(data) && !this.allowsMulti('create')) { return Promise.reject(new MethodNotAllowed(`Can not create multiple entries`)); @@ -119,10 +115,6 @@ export class AdapterService implements ServiceMethods { return callMethod(this, '_update', id, data, params); } - patch (id: Id, data: Partial, params?: Params): Promise; - - patch (id: null, data: Partial, params?: Params): Promise; - patch (id: NullableId, data: Partial, params?: Params): Promise { if (id === null && !this.allowsMulti('patch')) { return Promise.reject(new MethodNotAllowed(`Can not patch multiple entries`)); @@ -131,10 +123,6 @@ export class AdapterService implements ServiceMethods { return callMethod(this, '_patch', id, data, params); } - remove (id: Id, params?: Params): Promise; - - remove (id: null, params?: Params): Promise; - remove (id: NullableId, params?: Params): Promise { if (id === null && !this.allowsMulti('remove')) { return Promise.reject(new MethodNotAllowed(`Can not remove multiple entries`));