mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
parent
e2a5d45b51
commit
d09b1bfb5a
@ -47515,7 +47515,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
}
|
||||
const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));
|
||||
if (target === unknownSymbol) {
|
||||
return true;
|
||||
return !excludeTypeOnlyValues || !getTypeOnlyAliasDeclaration(symbol);
|
||||
}
|
||||
// const enums and modules that contain only const enums are not considered values from the emit perspective
|
||||
// unless 'preserveConstEnums' option is set to true
|
||||
|
||||
@ -662,4 +662,15 @@ export * as alias from './file';`,
|
||||
testVerbatimModuleSyntax: true,
|
||||
},
|
||||
);
|
||||
|
||||
transpilesCorrectly(
|
||||
"Elides re-export of type-only import",
|
||||
`
|
||||
import type { Foo } from "./types";
|
||||
export { Foo };
|
||||
`,
|
||||
{
|
||||
options: { compilerOptions: { module: ts.ModuleKind.ESNext, target: ts.ScriptTarget.ESNext } },
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=file.js.map
|
||||
@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=file.js.map
|
||||
Loading…
x
Reference in New Issue
Block a user