@feathersjs/feathers + @feathersjs/socketio: Minor fixes (#23822)

* [@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

* @feathersjs/feathers: add generic default type to `Application` interface
@feathersjs/feathers: make Params.paginate optional
@feathersjs/socketio: make callback optional

* change Hook return type from undefined to void

* Update index.d.ts

* disable tslint rule 'void-return' for specific callback

* Update index.d.ts

* Update index.d.ts
This commit is contained in:
Jan Lohage
2018-02-26 11:52:21 -08:00
committed by Andy
parent fe309837c4
commit d2afdde5ba
3 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -7,6 +7,6 @@
/// <reference types="socket.io" />
/// <reference types="feathersjs__socket-commons"/>
export default function feathersSocketIO(callback: (io: SocketIO.Server) => void): () => void;
export default function feathersSocketIO(callback?: (io: SocketIO.Server) => void): () => void;
export default function feathersSocketIO(options: number | SocketIO.ServerOptions, callback?: (io: SocketIO.Server) => void): () => void;
export default function feathersSocketIO(port: number, options?: SocketIO.ServerOptions, callback?: (io: SocketIO.Server) => void): () => void;