1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 21:20:07 +02:00
This commit is contained in:
s2
2018-05-18 17:26:33 +02:00
parent 0ea0853165
commit 2c5b23c10e
1125 changed files with 118732 additions and 1 deletions

18
app/node_modules/galactus/lib/DestroyerOfModules.d.ts generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import { Module, Walker } from 'flora-colossus';
export declare type ShouldKeepModuleTest = (module: Module, isDevDep: boolean) => boolean;
export declare type ModuleMap = Map<string, Module>;
export declare class DestroyerOfModules {
private walker;
private shouldKeepFn;
constructor({rootDirectory, walker, shouldKeepModuleTest}: {
rootDirectory?: string;
walker?: Walker;
shouldKeepModuleTest?: ShouldKeepModuleTest;
});
destroyModule(modulePath: string, moduleMap: ModuleMap): Promise<void>;
collectKeptModules({relativePaths}: {
relativePaths: boolean;
}): Promise<ModuleMap>;
destroy(): Promise<void>;
private shouldKeepModule(module);
}