TypeScript/tests/cases/fourslash/moveToNewFile_bindingPatterns.ts
Andy eadf44d073
Add generateTypesForModule to public API (#28069)
* Add generateTypesForModule to public API

* Avoid parameter initializer and update baselines
2018-10-23 16:10:26 -07:00

25 lines
380 B
TypeScript

/// <reference path='fourslash.ts' />
// @Filename: /a.ts
////[|export const [x, { p: y }] = [0, { p: 1 }];|]
// @Filename: /b.ts
////import { x, y } from "./a";
verify.noErrors();
verify.moveToNewFile({
newFileContents: {
"/a.ts": "",
"/x.ts":
`export const [x, { p: y }] = [0, { p: 1 }];
`,
"/b.ts":
`
import { x, y } from "./x";
`,
},
});