diff --git a/packages/adapter-commons/src/service.ts b/packages/adapter-commons/src/service.ts index 6182dbb4e8..6a462f7819 100644 --- a/packages/adapter-commons/src/service.ts +++ b/packages/adapter-commons/src/service.ts @@ -26,7 +26,7 @@ export interface ServiceOptions { } export interface InternalServiceMethods { - _find (params?: Params): Promise>; + _find (params?: Params): Promise>; _get (id: Id, params?: Params): Promise; _create (data: Partial | Array>, params?: Params): Promise; _update (id: Id, data: T, params?: Params): Promise; @@ -94,9 +94,6 @@ export class AdapterService implements ServiceMethods { return callMethod(this, '_get', id, params); } - create (data: Partial, params?: Params): Promise; - create (data: Array>, params?: Params): Promise; - create (data: Partial | Array>, params?: Params): Promise; create (data: Partial | Array>, params?: Params): Promise { if (Array.isArray(data) && !this.allowsMulti('create')) { return Promise.reject(new MethodNotAllowed(`Can not create multiple entries`)); @@ -115,9 +112,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; patch (id: NullableId, data: Partial, params?: Params): Promise { if (id === null && !this.allowsMulti('patch')) { return Promise.reject(new MethodNotAllowed(`Can not patch multiple entries`)); @@ -126,9 +120,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; remove (id: NullableId, params?: Params): Promise { if (id === null && !this.allowsMulti('remove')) { return Promise.reject(new MethodNotAllowed(`Can not remove multiple entries`));