Fixed @feathersjs/feathers find service method return type

This commit is contained in:
Kenza Iraki
2018-11-20 16:28:37 -05:00
parent bf29450ff9
commit 02ac8504a8
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for @feathersjs/feathers 3.0
// Type definitions for @feathersjs/feathers 3.1
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Abraao Alves <https://github.com/AbraaoAlves>
@@ -138,7 +138,7 @@ export interface HooksObject {
// todo: figure out what to do: These methods don't actually need to be implemented, so they can be undefined at runtime. Yet making them optional gets cumbersome in strict mode.
export interface ServiceMethods<T> {
find(params?: Params): Promise<T[] | Paginated<T>>;
find(params?: Params): Promise<T | T[] | Paginated<T>>;
get(id: Id, params?: Params): Promise<T>;