@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 20:52:21 +01:00
committed by Andy
parent fe309837c4
commit d2afdde5ba
3 changed files with 13 additions and 10 deletions

View File

@@ -28,8 +28,10 @@ declare module '@feathersjs/feathers' {
interface Application<ServiceTypes> {
channel(...names: string[]): Channel;
publish<T>(callback: (data: T, hook: HookContext<T>) => Channel | Channel[]): Application<ServiceTypes>;
// tslint:disable-next-line void-return
publish<T>(callback: (data: T, hook: HookContext<T>) => Channel | Channel[] | void): Application<ServiceTypes>;
publish<T>(event: string, callback: (data: T, hook: HookContext<T>) => Channel | Channel[]): Application<ServiceTypes>;
// tslint:disable-next-line void-return
publish<T>(event: string, callback: (data: T, hook: HookContext<T>) => Channel | Channel[] | void): Application<ServiceTypes>;
}
}