mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 03:37:53 +08:00
@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:
6
types/feathersjs__socket-commons/index.d.ts
vendored
6
types/feathersjs__socket-commons/index.d.ts
vendored
@@ -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>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user