UNPKG

@notjustcoders/ioc-arise

Version:

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

34 lines 1.46 kB
/** * Utility class for generating path-based injection helpers. * Provides TypeScript type-safe path navigation and injection utilities. */ export declare class PathInjectionUtils { /** * Generates the recursive Paths type for traversing object types. */ static generatePathsType(): string; /** * Generates the ContainerKey type that applies Paths to the Container type. */ static generateContainerKeyType(): string; /** * Generates the GetByPath type for resolving return types using template literals. */ static generateGetByPathType(): string; /** * Generates the initialization tracking variable and onInit function. * @param customOnInitBody Optional custom body for the onInit function to preserve user changes */ static generateInitializationCode(customOnInitBody?: string): string; /** * Generates the inject function with type-safe path resolution. */ static generateInjectFunction(): string; /** * Generates all path-based injection utilities as a complete code block. * @param customOnInitBody Optional custom body for the onInit function to preserve user changes * @param preservedImports Optional array of import statements to preserve for onInit dependencies */ static generatePathInjectionUtilities(customOnInitBody?: string, preservedImports?: string[]): string; } //# sourceMappingURL=path-injection-utils.d.ts.map