jetup
Version:
Jetup: JavaScript Project Setup! Jetting-up your next JS project in seconds with one command, using fully modular, customizable presets, instantly ready to code!.
13 lines (12 loc) • 356 B
TypeScript
interface Module {
name: string;
}
export type Constructor = new (...args: any) => Module;
export declare class ModuleRegistry {
private readonly _registry;
register<K extends Constructor>(key: K, value: InstanceType<K>): void;
get<K extends Constructor>(key: K): InstanceType<K>;
keys(): string[];
values(): Module[];
}
export {};