8000 fix: Improve Params typing (#1474) · feathersjs/feathers@54a3aa7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54a3aa7

Browse files
vonagamdaffl
authored andcommitted
fix: Improve Params typing (#1474)
1 parent e542cb3 commit 54a3aa7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/feathers/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ declare namespace createApplication {
3434
interface Params {
3535
query?: Query;
3636
paginate?: false | Pick<PaginationOptions, 'max'>;
37+
provider?: string;
38+
route?: {[key: string]: string};
39+
headers?: {[key: string]: any};
3740

3841
[key: string]: any; // (JL) not sure if we want this
3942
}

packages/transport-commons/src/channels/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Debug from 'debug';
22
import { compact, flattenDeep, noop } from 'lodash';
3-
import { Channel } from './channel/base';
3+
import { Channel, RealTimeConnection } from './channel/base';
44
import { CombinedChannel } from './channel/combined';
55
import { channelMixin, publishMixin, keys, PublishMixin, Event, Publisher } from './mixins';
66
import { Application, Service } from '@feathersjs/feathers';
@@ -29,6 +29,10 @@ declare module '@feathersjs/feathers' {
2929
registerPublisher<T> (publisher: Publisher<T>): this;
3030
registerPublisher<T> (event: Event, publisher: Publisher<T>): this;
3131
}
32+
33+
interface Params {
34+
connection?: RealTimeConnection;
35+
}
3236
}
3337

3438
export { keys };

0 commit comments

Comments
 (0)
0