mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-09 04:18:51 +08:00
@feathersjs/multiple
correctly type behavior of combined commonJS and ES module default exports `module.exports.default = module.exports`
This commit is contained in:
4
types/feathersjs__express/index.d.ts
vendored
4
types/feathersjs__express/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user