From 823efa4650567f7cf040e6f6f0524df47ffbcd5e Mon Sep 17 00:00:00 2001 From: Jan Lohage Date: Tue, 4 Dec 2018 12:44:29 +0100 Subject: [PATCH 1/2] @feathersjs/feathers: make default export type generic --- types/feathersjs__feathers/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/feathersjs__feathers/index.d.ts b/types/feathersjs__feathers/index.d.ts index 5948eadc27..4da4dd49c6 100644 --- a/types/feathersjs__feathers/index.d.ts +++ b/types/feathersjs__feathers/index.d.ts @@ -12,7 +12,7 @@ import { EventEmitter } from 'events'; import * as self from '@feathersjs/feathers'; -declare const feathers: (() => Application) & typeof self; +declare const feathers: (() => Application) & typeof self; export default feathers; export const version: string; From a7c4d2a685848521cd17b9e83b949e9605aa0f4a Mon Sep 17 00:00:00 2001 From: Jan Lohage Date: Tue, 4 Dec 2018 13:00:49 +0100 Subject: [PATCH 2/2] fix tests and linting --- types/feathersjs__feathers/feathersjs__feathers-tests.ts | 2 +- types/feathersjs__feathers/index.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/feathersjs__feathers/feathersjs__feathers-tests.ts b/types/feathersjs__feathers/feathersjs__feathers-tests.ts index 7d0e961700..bf1cdf8aa7 100644 --- a/types/feathersjs__feathers/feathersjs__feathers-tests.ts +++ b/types/feathersjs__feathers/feathersjs__feathers-tests.ts @@ -9,7 +9,7 @@ interface Services { users: User; } -const app = feathers() as Application; +const app = feathers(); app.service('users').get(0).then(u => { const user: User = u; diff --git a/types/feathersjs__feathers/index.d.ts b/types/feathersjs__feathers/index.d.ts index 4da4dd49c6..4746b29ff7 100644 --- a/types/feathersjs__feathers/index.d.ts +++ b/types/feathersjs__feathers/index.d.ts @@ -12,6 +12,7 @@ import { EventEmitter } from 'events'; import * as self from '@feathersjs/feathers'; +// tslint:disable-next-line no-unnecessary-generics declare const feathers: (() => Application) & typeof self; export default feathers;