diff --git a/src/globals.d.ts b/src/globals.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..54130ec3dc3f7945374278f149b386ffbf1cf2b4 --- /dev/null +++ b/src/globals.d.ts @@ -0,0 +1,5 @@ +// If we don't do this, importing bootstrap.css throws a linter-error +declare module "*.css" { + const content: string; + export default content; +} diff --git a/src/index.ts b/src/index.ts index 6763d361a77226aeb08e128d5c3753c31c7d201b..1c5a900355f014befc9d7451d81317aa8b1479dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,6 @@ import { renderTranscriptPageHtml, } from "./lib/rendering"; import { generateAttendancePage } from "./lib/attendance"; -// @ts-ignore import bootstrap from "bootstrap/dist/css/bootstrap.min.css"; async function main() {