TypeScript/tests/cases/fourslash/refactorConvertToEs6Module_import_objectBindingPattern_complex.ts

17 lines
288 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowJs: true
// @target: esnext
// @Filename: /a.js
////const { x: { a, b } } = require("x");
////a; b;
verify.codeFix({
description: "Convert to ES6 module",
newFileContent:
`import x from "x";
const { x: { a, b } } = x;
a; b;`,
});