mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
[@feathersjs] add missing dependency to @feathersjs/socketio and @feathersjs/primus packages, add reexports to @feathersjs/express (#23230)
* [@feathersjs] add @feathersjs/socket-commons import to @feathersjs/socketio and @feathersjs/primus packages * [@feathersjs] fix ts version in @feathersjs/socketio and @feathersjs/primus packages * [@feathersjs] really fix ts version in @feathersjs/socketio and @feathersjs/primus packages * add express reexports
This commit is contained in:
committed by
Sheetal Nandi
parent
f08ec1c02f
commit
33b99a3fe9
Vendored
+29
-3
@@ -7,7 +7,8 @@
|
||||
import { Application as FeathersApplication } from '@feathersjs/feathers';
|
||||
import * as express from 'express';
|
||||
|
||||
export default function feathersExpress<T>(app: FeathersApplication<T>): express.Application & FeathersApplication<T>;
|
||||
export default function feathersExpress<T>(app: FeathersApplication<T>): Application<T>;
|
||||
export type Application<T> = express.Application & FeathersApplication<T>;
|
||||
|
||||
export function errorHandler(options?: any): express.ErrorRequestHandler;
|
||||
export function notFound(): express.RequestHandler;
|
||||
@@ -17,6 +18,31 @@ export const rest: {
|
||||
};
|
||||
|
||||
/*
|
||||
* Re-export of the express package. Can't be typed properly without just copying everything.
|
||||
* Re-export of the express package.
|
||||
**/
|
||||
export const original: any;
|
||||
|
||||
export {
|
||||
CookieOptions,
|
||||
Errback,
|
||||
ErrorRequestHandler,
|
||||
Express,
|
||||
Handler,
|
||||
IRoute,
|
||||
IRouter,
|
||||
IRouterHandler,
|
||||
IRouterMatcher,
|
||||
json,
|
||||
MediaType,
|
||||
NextFunction,
|
||||
Request,
|
||||
RequestHandler,
|
||||
RequestParamHandler,
|
||||
Response,
|
||||
Router,
|
||||
RouterOptions,
|
||||
Send,
|
||||
static,
|
||||
urlencoded
|
||||
} from 'express';
|
||||
|
||||
export const original: typeof express;
|
||||
|
||||
Vendored
+3
@@ -2,6 +2,9 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="feathersjs__socket-commons"/>
|
||||
|
||||
// primus removed its typings from the repo https://github.com/primus/primus/pull/623, as of 01/2018 there are none on DT
|
||||
export default function feathersPrimus(options: any, callback?: (primus: any) => void): () => void;
|
||||
|
||||
+2
@@ -2,8 +2,10 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="socket.io" />
|
||||
/// <reference types="feathersjs__socket-commons"/>
|
||||
|
||||
export default function feathersSocketIO(callback: (io: SocketIO.Server) => void): () => void;
|
||||
export default function feathersSocketIO(options: number | SocketIO.ServerOptions, callback?: (io: SocketIO.Server) => void): () => void;
|
||||
|
||||
Reference in New Issue
Block a user