refactor: move from union type to object enum

This commit is contained in:
2026-07-15 02:41:17 +05:00
parent 35465f581f
commit 84f64af62d
30 changed files with 490 additions and 193 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ export class InMemoryFileSystem implements IFileSystem {
}
async readdir(path: string): Promise<string[]> {
const prefix = path.endsWith("/") || path.endsWith("\\") ? path : path + "/";
const prefix =
path.endsWith("/") || path.endsWith("\\") ? path : path + "/";
const seen = new Set<string>();
for (const key of this.#files.keys()) {
if (key.startsWith(prefix)) {