feat: flatten file tree for better performance

This commit is contained in:
tdurieux
2024-04-26 10:32:09 +01:00
parent ccdc95e4a8
commit 710f7328e7
23 changed files with 516 additions and 514 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { Readable } from "stream";
import AnonymizedFile from "../AnonymizedFile";
import { Tree } from "../types";
import { SourceBase } from "./Source";
import { IFile } from "../model/files/files.types";
export interface GitHubBaseData {
getToken: () => string | Promise<string>;
@@ -23,5 +23,5 @@ export default abstract class GitHubBase implements SourceBase {
progress?: (status: string) => void
): Promise<Readable>;
abstract getFiles(progress?: (status: string) => void): Promise<Tree>;
abstract getFiles(progress?: (status: string) => void): Promise<IFile[]>;
}