@feathersjs/multiple

correctly type behavior of combined commonJS and ES module default exports `module.exports.default = module.exports`
This commit is contained in:
Jan Lohage
2018-03-20 13:05:44 +01:00
parent eedbe4b774
commit 39f4c4ccee
8 changed files with 24 additions and 8 deletions

View File

@@ -6,8 +6,10 @@
import { Application as FeathersApplication } from '@feathersjs/feathers';
import * as express from 'express';
import * as self from '@feathersjs/express';
export default function feathersExpress<T>(app: FeathersApplication<T>): Application<T>;
declare const feathersExpress: (<T>(app: FeathersApplication<T>) => Application<T>) & typeof self;
export default feathersExpress;
export type Application<T> = express.Application & FeathersApplication<T>;
export function errorHandler(options?: any): express.ErrorRequestHandler;