Files
tsgo/testdata/baselines/reference/submodule/compiler/elidedJSImport2(module=es2022).js

49 lines
851 B
TypeScript

//// [tests/cases/compiler/elidedJSImport2.ts] ////
//// [index.js]
import { Foo } from "./other.js";
import * as other from "./other.js";
import defaultFoo from "./other.js";
const x = new Foo();
const y = other.Foo();
const z = new defaultFoo();
//// [other.d.ts]
export interface Foo {
bar: number;
}
export default interface Bar {
foo: number;
}
//// [other.js]
export class Foo {
bar = 2.4;
}
export default class Bar {
foo = 1.2;
}
//// [index.js]
import { Foo } from "./other.js";
import * as other from "./other.js";
import defaultFoo from "./other.js";
const x = new Foo();
const y = other.Foo();
const z = new defaultFoo();
//// [other.js]
export class Foo {
constructor() {
this.bar = 2.4;
}
}
export default class Bar {
constructor() {
this.foo = 1.2;
}
}