build(ts): enable noUncheckedIndexedAccess and isolatedModules

This commit is contained in:
2026-02-20 01:50:09 -08:00
parent 06e8223d63
commit a4532a5fa0
45 changed files with 169 additions and 126 deletions

View File

@@ -20,7 +20,7 @@ export class Texthooker {
}
this.server = http.createServer((req, res) => {
const urlPath = (req.url || '/').split('?')[0];
const urlPath = (req.url || '/').split('?')[0] ?? '/';
const filePath = path.join(texthookerPath, urlPath === '/' ? 'index.html' : urlPath);
const ext = path.extname(filePath);