[Telemetry Tools] Add support for ExportSpecifier in constrains (#171111)

This commit is contained in:
Alejandro Fernández Haro 2023-11-13 19:35:39 +01:00 committed by GitHub
parent 44341ac01c
commit 259a8fc0ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ export function getConstraints(node: ts.Node, program: ts.Program): any {
return node.text;
}
if (ts.isImportSpecifier(node)) {
if (ts.isImportSpecifier(node) || ts.isExportSpecifier(node)) {
const source = node.getSourceFile();
const importedModuleName = getModuleSpecifier(node);