eadf44d073
* Add generateTypesForModule to public API * Avoid parameter initializer and update baselines
34 lines
540 B
TypeScript
34 lines
540 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @Filename: /a.ts
|
|
////class C {
|
|
//// get g() { return 0; }
|
|
//// get h() { return 1; }
|
|
////}
|
|
////[|export const { g, h: i } = new C();|]
|
|
|
|
// @Filename: /b.ts
|
|
////import { g, i } from "./a";
|
|
|
|
verify.noErrors();
|
|
|
|
verify.moveToNewFile({
|
|
newFileContents: {
|
|
"/a.ts":
|
|
`export class C {
|
|
get g() { return 0; }
|
|
get h() { return 1; }
|
|
}
|
|
`,
|
|
|
|
"/g.ts":
|
|
`import { C } from "./a";
|
|
export const { g, h: i } = new C();
|
|
`,
|
|
|
|
"/b.ts":
|
|
`
|
|
import { g, i } from "./g";
|
|
`,
|
|
},
|
|
});
|