From 570081bad0b664f48ce91172e9a6d4ce2d6231c2 Mon Sep 17 00:00:00 2001
From: Cedric Greiten <cedric.greiten@tu-dortmund.de>
Date: Fri, 16 May 2025 01:43:28 +0200
Subject: [PATCH] fix bootstrap import error

---
 src/globals.d.ts | 5 +++++
 src/index.ts     | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 src/globals.d.ts

diff --git a/src/globals.d.ts b/src/globals.d.ts
new file mode 100644
index 0000000..54130ec
--- /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 6763d36..1c5a900 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() {
-- 
GitLab