swc/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliases.ts

15 lines
274 B
TypeScript

// @allowJs: true
// @checkJs: true
// @target: es5
// @outDir: ./out
// @declaration: true
// @filename: cls.js
export default class Foo {}
// @filename: usage.js
import {default as Fooa} from "./cls";
export const x = new Fooa();
export {default as Foob} from "./cls";