UNPKG

@jfconley/di-compiler

Version:

A Custom Transformer for Typescript that enables compile-time Dependency Injection

23 lines (22 loc) 760 B
interface ImportedSymbolBase { moduleSpecifier: string; } interface NamedImportedSymbol extends ImportedSymbolBase { isDefaultImport: boolean; name: string; propertyName: string; } interface NamespaceImportedSymbol extends ImportedSymbolBase { isNamespaceImport: true; name: string; } type ImportedSymbol = NamedImportedSymbol | NamespaceImportedSymbol; /** * A Set of imported symbols and data about them */ type ImportedSymbolSet = Set<ImportedSymbol>; /** * A Map between source files and their ImportedSymbolSets */ type SourceFileToImportedSymbolSet = Map<string, ImportedSymbolSet>; export { ImportedSymbolBase, NamedImportedSymbol, NamespaceImportedSymbol, ImportedSymbol, ImportedSymbolSet, SourceFileToImportedSymbolSet };