diff --git a/packages/feathers/index.d.ts b/packages/feathers/index.d.ts index d59923b56d..25135d8f14 100644 --- a/packages/feathers/index.d.ts +++ b/packages/feathers/index.d.ts @@ -34,6 +34,9 @@ declare namespace createApplication { interface Params { query?: Query; paginate?: false | Pick; + provider?: string; + route?: {[key: string]: string}; + headers?: {[key: string]: any}; [key: string]: any; // (JL) not sure if we want this } diff --git a/packages/transport-commons/src/channels/index.ts b/packages/transport-commons/src/channels/index.ts index c2cf57a4bd..eacc8ee861 100644 --- a/packages/transport-commons/src/channels/index.ts +++ b/packages/transport-commons/src/channels/index.ts @@ -1,6 +1,6 @@ import Debug from 'debug'; import { compact, flattenDeep, noop } from 'lodash'; -import { Channel } from './channel/base'; +import { Channel, RealTimeConnection } from './channel/base'; import { CombinedChannel } from './channel/combined'; import { channelMixin, publishMixin, keys, PublishMixin, Event, Publisher } from './mixins'; import { Application, Service } from '@feathersjs/feathers'; @@ -29,6 +29,10 @@ declare module '@feathersjs/feathers' { registerPublisher (publisher: Publisher): this; registerPublisher (event: Event, publisher: Publisher): this; } + + interface Params { + connection?: RealTimeConnection; + } } export { keys };