mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Fixed @feathersjs/feathers find service method return type
This commit is contained in:
+2
-2
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user