Skip to content

Commit 0dc0d7a

Browse files
committed
fix: ts unknown
1 parent 5a7067d commit 0dc0d7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/scripts/check-gs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ async function checkProject(
169169
try {
170170
await execAsync(`tsc -p \"${projectTempDir}\"`, { cwd: rootDir });
171171
return { name: project.name, success: true, output: "" };
172-
} catch (e: { stdout: string; stderr: string }) {
173-
const rawOutput = (e.stdout || "") + (e.stderr || "");
172+
} catch (e) {
173+
const err = e as { stdout?: string; stderr?: string };
174+
const rawOutput = (err.stdout ?? "") + (err.stderr || "");
174175

175176
const rewritten = rawOutput
176177
.split("\n")

0 commit comments

Comments
 (0)