Skip to content

Commit 5661f17

Browse files
committed
Fix a few more typescript detected errors
1 parent abbf864 commit 5661f17

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

binderhub/static/js/components/FaviconUpdater.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import FailIcon from "../../images/favicon/fail.ico";
33
import SuccessIcon from "../../images/favicon/success.ico";
44

55
import { PROGRESS_STATES } from "./Progress.jsx";
6-
import { useEffect } from "react";
7-
import { updateFavicon } from "../src/favicon";
86

97
/**
108
* @typedef {object} FaviconUpdaterProps

binderhub/static/js/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Tell typescript to be quiet about .ico files we use for favicons
2+
declare module "*.ico";

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"allowJs": true,
4-
"checkJs": false,
4+
"checkJs": true,
55
"noEmit": false,
66
"allowSyntheticDefaultImports": true,
77
"skipLibCheck": true,

0 commit comments

Comments
 (0)