UNPKG

@notjustcoders/ioc-arise

Version:

Arise type-safe IoC containers from your code. Zero overhead, zero coupling.

21 lines 1.05 kB
import { ClassInfo, FactoryInfo, ValueInfo } from '../types'; import { TsConfigPathsResolver } from '../utils/tsConfigPathsResolver'; export declare class TypeDeclarationGenerator { static generate(classes: ClassInfo[], outputPath: string, factories?: FactoryInfo[], values?: ValueInfo[], pathsResolver?: TsConfigPathsResolver): void; private static generateTypeDeclarations; private static generateTypeImports; /** * Finds the relative import path for an interface name by scanning a given source file's imports. * Used by instance factories to locate the interface type they implement. */ private static findInterfaceLocationInFile; private static findInterfaceLocationForValue; private static findInterfaceLocations; private static generateRegistryInterface; /** * Checks for class name collisions and throws an error if any are found */ private static checkForNameCollisions; private static generateModuleAugmentation; } //# sourceMappingURL=type-declaration-generator.d.ts.map