TypeScript Version: 2.6.0-dev.20171013
Code
main.ts
import Foo from "./foo";
const x = new Foo();
x.bar()
foo.ts
import {} from 'path'
export default class Foo {
}
Trigger the declare method 'bar' code action on f.bar
Expected behavior:
foo.ts becomes:
import {} from 'path'
export default class Foo {
bar() {
throw new Error("Method not implemented.");
}
}
Actual behavior:
foo.ts becomes:
import {} from 'path'
export default class Foo {
} bar() {
throw new Error("Method not implemented.");
}
TypeScript Version: 2.6.0-dev.20171013
Code
main.tsfoo.tsTrigger the
declare method 'bar'code action onf.barExpected behavior:
foo.tsbecomes:Actual behavior:
foo.tsbecomes: