🐛 fix(ci): 补全前端 statSync 类型声明

- 补齐 node:fs 测试 shim 的 statSync 返回类型
- 修复干净 CI 环境下前端 TypeScript 构建失败
This commit is contained in:
Syngnat
2026-07-22 16:53:49 +08:00
parent bf060f0082
commit 8ca2c23d18

View File

@@ -1,6 +1,7 @@
declare module 'node:fs' {
export function readdirSync(path: string | URL): string[];
export function readFileSync(path: string | URL, encoding: string): string;
export function statSync(path: string | URL): { isDirectory(): boolean };
}
declare module 'node:path' {