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

@@ -47,10 +47,10 @@ export function parseX11WindowGeometry(winInfo: string): {
return null;
}
return {
x: parseInt(xMatch[1], 10),
y: parseInt(yMatch[1], 10),
width: parseInt(widthMatch[1], 10),
height: parseInt(heightMatch[1], 10),
x: parseInt(xMatch[1]!, 10),
y: parseInt(yMatch[1]!, 10),
width: parseInt(widthMatch[1]!, 10),
height: parseInt(heightMatch[1]!, 10),
};
}
@@ -59,7 +59,7 @@ export function parseX11WindowPid(raw: string): number | null {
if (!pidMatch) {
return null;
}
const pid = Number.parseInt(pidMatch[1], 10);
const pid = Number.parseInt(pidMatch[1]!, 10);
return Number.isInteger(pid) ? pid : null;
}