1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
/// <reference path='fourslash.ts' />
////class C {
//// constructor() {
//// this.foo({
//// 'foo.a': '',
//// 'foo.b': '',
//// 'foo.c': '',
//// 'foo.d': '',
//// 'foo.e': '',
//// 'foo.f': '',
//// 'foo.g': '',
//// 'foo.h': '',
//// 'foo.i': '',
//// 'foo.j': '',
//// 'foo.k': '',
//// 'foo.l': '',
//// 'foo.m': '',
//// 'foo.n': '',
//// 'foo.o': '',
//// 'foo.p': '',
//// 'foo.q': '',
//// 'foo.r': '',
//// 'foo.s': '',
//// 'foo.t': '',
//// 'foo.u': '',
//// 'foo.v': '',
//// 'foo.w': '',
//// 'foo.x': '',
//// 'foo.y': '',
//// 'foo.z': '',
//// });
//// }
////}
verify.codeFix({
description: [ts.Diagnostics.Declare_method_0.message, "foo"],
index: 0,
newFileContent:
`class C {
constructor() {
this.foo({
'foo.a': '',
'foo.b': '',
'foo.c': '',
'foo.d': '',
'foo.e': '',
'foo.f': '',
'foo.g': '',
'foo.h': '',
'foo.i': '',
'foo.j': '',
'foo.k': '',
'foo.l': '',
'foo.m': '',
'foo.n': '',
'foo.o': '',
'foo.p': '',
'foo.q': '',
'foo.r': '',
'foo.s': '',
'foo.t': '',
'foo.u': '',
'foo.v': '',
'foo.w': '',
'foo.x': '',
'foo.y': '',
'foo.z': '',
});
}
foo(arg0: { 'foo.a': string; 'foo.b': string; 'foo.c': string; 'foo.d': string; 'foo.e': string; 'foo.f': string; 'foo.g': string; 'foo.h': string; 'foo.i': string; 'foo.j': string; 'foo.k': string; 'foo.l': string; 'foo.m': string; 'foo.n': string; 'foo.o': string; 'foo.p': string; 'foo.q': string; 'foo.r': string; 'foo.s': string; 'foo.t': string; 'foo.u': string; 'foo.v': string; 'foo.w': string; 'foo.x': string; 'foo.y': string; 'foo.z': string; }) {
throw new Error("Method not implemented.");
}
}`,
});
|