dependencies: bump (major)

TODO: drop the "const argv = argvObj as Record<string, any>;" hack

Refs: yargs/yargs#2175
This commit is contained in:
Jesse Chan
2022-05-07 16:41:01 -07:00
parent 531e33d636
commit efdd620192
13 changed files with 4441 additions and 5327 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import type {EventMap} from 'typed-emitter';
import type {Operation} from 'fast-json-patch';
import type {Request, Response} from 'express';
import type TypedEmitter from 'typed-emitter';
@@ -21,7 +22,7 @@ export default async (req: Request, res: Response) => {
const fetchTorrentList = serviceInstances.torrentService.fetchTorrentList();
// Hook into events and stop listening when connection is closed
const handleEvents = <T extends TypedEmitter<Record<string, unknown>>>(
const handleEvents = <T extends TypedEmitter<EventMap>>(
emitter: T,
event: Parameters<T['on']>[0],
handler: Parameters<T['on']>[1],