mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
refactor(): remove generic type
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
||||
RQM_DEFAULT_URL,
|
||||
} from '../constants';
|
||||
import { CustomTransportStrategy, RmqOptions } from '../interfaces';
|
||||
import { MicroserviceOptions } from '../interfaces/microservice-configuration.interface';
|
||||
import { Server } from './server';
|
||||
|
||||
let rqmPackage: any = {};
|
||||
@@ -72,7 +71,7 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
|
||||
}
|
||||
|
||||
public createClient<T = any>(): T {
|
||||
const socketOptions = this.getOptionsProp<RmqOptions>(this.options, 'socketOptions');
|
||||
const socketOptions = this.getOptionsProp(this.options, 'socketOptions');
|
||||
return rqmPackage.connect(this.urls, socketOptions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user