style: address packages lint errors

This commit is contained in:
Kamil Myśliwiec
2024-11-26 10:38:31 +01:00
parent 236b633a76
commit 8829b8d1d7
71 changed files with 135 additions and 116 deletions

View File

@@ -65,7 +65,7 @@ export class ClientGrpcProxy
this.grpcClients = this.createClients();
}
public getService<T extends {}>(name: string): T {
public getService<T extends object>(name: string): T {
const grpcClient = this.createClientByServiceName(name);
const clientRef = this.getClient(name);
if (!clientRef) {
@@ -372,7 +372,9 @@ export class ClientGrpcProxy
}
protected getClient(name: string): any {
return this.grpcClients.find(client => client.hasOwnProperty(name));
return this.grpcClients.find(client =>
Object.hasOwnProperty.call(client, name),
);
}
protected publish(packet: any, callback: (packet: any) => any): any {