Merge pull request #30703 from kirakik/fix/feathersjs_find

Fixed @feathersjs/feathers find service method return type
This commit is contained in:
Benjamin Lichtman
2018-11-21 08:24:22 -08:00
committed by GitHub
+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>;