diff --git a/src/nats.transport.ts b/src/nats.transport.ts index a5ba480..dbc48da 100644 --- a/src/nats.transport.ts +++ b/src/nats.transport.ts @@ -32,7 +32,7 @@ export type Authenticatior = */ // deno-lint-ignore ban-types -export class NatsTransport implements Transport { +export class NatsTransport implements Transport { get state(): TransportState { return this._state } @@ -400,7 +400,7 @@ export class NatsTransport implements Transport { * * @returns dispose function */ - async subscribeEvents( + async subscribeEvents( handlerMap: Map1< TOverrideApi, TContext | TransportContext @@ -436,9 +436,9 @@ export class NatsTransport implements Transport { } } - publish( + publish( route: K, - payload: TApi[K], + payload: TPublishApi[K], options: PublishOptions = {}, ): Promise { if (!this.nc) { @@ -477,9 +477,9 @@ export class NatsTransport implements Transport { return Promise.resolve() } - async execute( + async execute( route: K, - payload: TApi[K], + payload: TPublishApi[K], options: ExecuteOptions = {}, ): Promise { if (!this.nc) {