Skip to content

Commit 510a93c

Browse files
committed
Add test fixtures with call signatures in interface keys
1 parent a4ca0a0 commit 510a93c

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

tests/fixtures/autofix-required-first.output.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,20 @@ interface ClockConstructor {
110110
interface ClockInterface {
111111
tick(): void;
112112
}
113+
114+
interface Methods {
115+
// %bar
116+
bar(): boolean;
117+
/* %baz */
118+
baz: boolean;
119+
foo: boolean;
120+
['garply']();
121+
/**
122+
* %foo
123+
*/
124+
quux(): any;
125+
['corge']?(): void;
126+
['grault']?(): void;
127+
quuz?(): any;
128+
qux?();
129+
}

tests/fixtures/autofix.input.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,20 @@ interface ClockConstructor {
108108
interface ClockInterface {
109109
tick(): void;
110110
}
111+
112+
interface Methods {
113+
/**
114+
* %foo
115+
*/
116+
quux(): any;
117+
qux?();
118+
quuz?(): any;
119+
foo: boolean;
120+
/* %baz */
121+
baz: boolean;
122+
// %bar
123+
bar(): boolean;
124+
['grault']?(): void;
125+
['corge']?(): void;
126+
['garply']();
127+
}

tests/fixtures/autofix.output.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,20 @@ interface ClockConstructor {
110110
interface ClockInterface {
111111
tick(): void;
112112
}
113+
114+
interface Methods {
115+
// %bar
116+
bar(): boolean;
117+
/* %baz */
118+
baz: boolean;
119+
['corge']?(): void;
120+
foo: boolean;
121+
['garply']();
122+
['grault']?(): void;
123+
/**
124+
* %foo
125+
*/
126+
quux(): any;
127+
quuz?(): any;
128+
qux?();
129+
}

0 commit comments

Comments
 (0)