Skip to content

Commit

Permalink
Merge pull request #633 from 3flex/fix-typing
Browse files Browse the repository at this point in the history
Fix issues found by TypeScript compiler
  • Loading branch information
nielsvanvelzen authored Oct 22, 2024
2 parents b680717 + 8445919 commit 0acdbc1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
20 changes: 15 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"devDependencies": {
"@types/chromecast-caf-receiver": "6.0.17",
"@types/node": "^18.19.57",
"eslint": "9.13.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.3",
Expand Down
4 changes: 2 additions & 2 deletions src/components/documentManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export abstract class DocumentManager {
// Duration between each backdrop switch in ms
private static backdropPeriodMs: number | null = 30000;
// Timer state - so that we don't start the interval more than necessary
private static backdropTimer: NodeJS.Timer | null = null;
private static backdropTimer: number | null = null;

private static status = AppStatus.Unset;

Expand Down Expand Up @@ -415,7 +415,7 @@ export abstract class DocumentManager {
return;
}

this.backdropTimer = setInterval(
this.backdropTimer = window.setInterval(
() => DocumentManager.setRandomUserBackdrop(),
this.backdropPeriodMs
);
Expand Down

0 comments on commit 0acdbc1

Please sign in to comment.