TypeScript/tests/cases/fourslash/convertFunctionToEs6Class_exportModifier2.ts
Andy 87c3cca3f0
Make convertFunctionToEs6Class a codefix (#22241)
* Make convertFunctionToEs6Class a codefix

* Change diagnostic message
2018-03-02 12:57:29 -08:00

21 lines
391 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowNonTsExtensions: true
// @Filename: test123.js
////export const foo = function() {
////};
////foo.prototype.instanceMethod = function() {
////};
verify.codeFix({
description: "Convert function to an ES2015 class",
newFileContent:
`export class foo {
constructor() {
}
instanceMethod() {
}
}
`,
});