diff --git a/packages/feathers/index.d.ts b/packages/feathers/index.d.ts index 9273162581..a18ec57c5b 100644 --- a/packages/feathers/index.d.ts +++ b/packages/feathers/index.d.ts @@ -144,15 +144,27 @@ export interface ServiceMethods { find? (params?: Params): Promise>; + _find? (params?: Params): Promise>; + get? (id: Id, params?: Params): Promise; + _get? (id: Id, params?: Params): Promise; + create? (data: Partial | Array>, params?: Params): Promise; + _create? (data: Partial | Array>, params?: Params): Promise; + update? (id: NullableId, data: T, params?: Params): Promise; + _update? (id: NullableId, data: T, params?: Params): Promise; + patch? (id: NullableId, data: Partial, params?: Params): Promise; + _patch? (id: NullableId, data: Partial, params?: Params): Promise; + remove? (id: NullableId, params?: Params): Promise; + + _remove? (id: NullableId, params?: Params): Promise; } export interface SetupMethod { @@ -204,7 +216,7 @@ export interface Application extends EventEmitter { setup (server?: any): this; - service (location: L): ServiceTypes[L]; + service (location: L): Service; service (location: string): Service;