Fix type bug

This commit is contained in:
2025-02-13 18:02:23 +01:00
parent cdc69bd932
commit 607754eb0f
+2 -2
View File
@@ -66,13 +66,13 @@ export class Injector {
});
});
}
on(event: InjectEvents.UrlChange, cb: (pixel: Pixel) => any): this;
on(event: InjectEvents.PixelPlaced, cb: (pixel: Pixel) => any): this;
on(event: InjectEvents.UrlChange, cb: (url: string) => any): this;
on(event: InjectEvents, cb: any) {
this.eventEmitter.on(event, cb);
return this;
}
off(event: InjectEvents.UrlChange, cb: (pixel: Pixel) => any): this;
off(event: InjectEvents.PixelPlaced, cb: (pixel: Pixel) => any): this;
off(event: InjectEvents.UrlChange, cb: (url: string) => any): this;
off(event: InjectEvents, cb: any) {
this.eventEmitter.off(event, cb);