Skip to content

Commit

Permalink
fix: Linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 17, 2024
1 parent 8cf1471 commit e3f555f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/player/src/facade/event-manager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type Handler = (...args: any) => any;

type Target = {
Expand Down
3 changes: 0 additions & 3 deletions packages/player/src/facade/facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ export class Facade {
if (!asset) {
throw new Error(
"No asset for interstitials player. This is a bug, report",
{
cause: { data, assets: this.assets_ },
},
);
}
this.assets_.delete(asset);
Expand Down
6 changes: 3 additions & 3 deletions packages/player/src/facade/timer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class Timer {
private timerId_?: NodeJS.Timer;
private timerId_?: number;

constructor(private onTick_: () => void) {}

Expand All @@ -14,7 +14,7 @@ export class Timer {
tickAfter(seconds: number) {
this.stop();

this.timerId_ = setTimeout(() => {
this.timerId_ = window.setTimeout(() => {
this.onTick_();
}, seconds * 1000);

Expand All @@ -24,7 +24,7 @@ export class Timer {
tickEvery(seconds: number) {
this.stop();

this.timerId_ = setTimeout(() => {
this.timerId_ = window.setTimeout(() => {
this.onTick_();
this.tickEvery(seconds);
}, seconds * 1000);
Expand Down

0 comments on commit e3f555f

Please sign in to comment.