fix(core): update

This commit is contained in:
2022-10-26 14:23:14 +02:00
parent 1266a814c6
commit dc826cb65a
4 changed files with 19 additions and 15 deletions

View File

@@ -204,7 +204,7 @@ export class TypedSocket {
});
}
public async findTargetConnectionByTag(keyArg: string, payloadArg?: any) {
public async findTargetConnectionByTag<T extends plugins.typedrequestInterfaces.ITag>(keyArg: string, payloadArg?: any) {
const allResults = await this.findAllTargetConnectionsByTag(keyArg, payloadArg);
return allResults[0];
}