mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Fix reference marking of values merged with unresolvable type-only imports (#54799)
This commit is contained in:
@@ -620,4 +620,16 @@ export * as alias from './file';`, {
|
||||
testVerbatimModuleSyntax: true
|
||||
}
|
||||
);
|
||||
|
||||
transpilesCorrectly("Preserves exported const merged with type-only import", `
|
||||
import fooValue from "./values";
|
||||
import type {Foo} from "./types";
|
||||
|
||||
const Foo: Foo = fooValue as any as Foo;
|
||||
|
||||
export {Foo};
|
||||
`, {
|
||||
options: { compilerOptions: { module: ts.ModuleKind.ESNext, target: ts.ScriptTarget.ESNext } },
|
||||
testVerbatimModuleSyntax: true
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user