Merge pull request #31036 from j2L4e/feathers-default-export

@feathersjs/feathers: make default export type generic
This commit is contained in:
Andrew Casey
2018-12-05 15:55:27 -08:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
@@ -9,7 +9,7 @@ interface Services {
users: User;
}
const app = feathers() as Application<Services>;
const app = feathers<Services>();
app.service('users').get(0).then(u => {
const user: User = u;
+2 -1
View File
@@ -12,7 +12,8 @@
import { EventEmitter } from 'events';
import * as self from '@feathersjs/feathers';
declare const feathers: (() => Application<object>) & typeof self;
// tslint:disable-next-line no-unnecessary-generics
declare const feathers: (<T = any>() => Application<T>) & typeof self;
export default feathers;
export const version: string;