Skip to content

TSModuleScope

A lexical scope for TypeScript which represents the top-level scope of a module. Manages the module’s imported and exported symbols.

Extends TSLexicalScope

addImport(targetSymbol: TSOutputSymbol, targetModule: TSModuleScope, options: AddImportOptions) => TSOutputSymbol
debugInfoRecord<string, unknown>
exportedSymbolsMap<Refkey, TSOutputSymbol>
getAllSymbols() => Set<TSOutputSymbol>
importedModulesImportRecords
importedSymbolsMap<TSOutputSymbol, TSOutputSymbol>
removeImport(targetSymbol: TSOutputSymbol, options: AddImportOptions) => voidDecrement the refcount for an import previously registered via addImport. When the last live consumer goes away, the local import symbol is deleted, which removes it from the module’s name spaces and triggers name-conflict-resolver reconciliation.