refactor(): remove generic type

This commit is contained in:
Kamil Myśliwiec
2019-04-10 12:59:43 +02:00
parent d2cadc12c1
commit ea2d32669e

View File

@@ -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);
}