From ae187b6d75c8079da0be1dc288613bad8466fe61 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 24 Oct 2023 17:43:37 +0200 Subject: Initial commit --- .../node_modules/galactus/lib/DestroyerOfModules.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 desktop/node_modules/galactus/lib/DestroyerOfModules.d.ts (limited to 'desktop/node_modules/galactus/lib/DestroyerOfModules.d.ts') diff --git a/desktop/node_modules/galactus/lib/DestroyerOfModules.d.ts b/desktop/node_modules/galactus/lib/DestroyerOfModules.d.ts new file mode 100644 index 0000000..9142f7b --- /dev/null +++ b/desktop/node_modules/galactus/lib/DestroyerOfModules.d.ts @@ -0,0 +1,18 @@ +import { Module, Walker } from 'flora-colossus'; +export declare type ShouldKeepModuleTest = (module: Module, isDevDep: boolean) => boolean; +export declare type ModuleMap = Map; +export declare class DestroyerOfModules { + private walker; + private shouldKeepFn?; + constructor({ rootDirectory, walker, shouldKeepModuleTest, }: { + rootDirectory?: string; + walker?: Walker; + shouldKeepModuleTest?: ShouldKeepModuleTest; + }); + destroyModule(modulePath: string, moduleMap: ModuleMap): Promise; + collectKeptModules({ relativePaths }: { + relativePaths: boolean; + }): Promise; + destroy(): Promise; + private shouldKeepModule; +} -- cgit