You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Accessibility or scope are ignored with this ignored.
250
+
Note: Accessibility or scope are ignored with this configuration.
231
251
232
252
```ts
233
253
const Foo =class {
@@ -239,6 +259,8 @@ const Foo = class {
239
259
publicstatic A():void {} // -> method
240
260
public B():void {} // -> method
241
261
262
+
[Z:string]:any; // -> signature
263
+
242
264
protectedstatic E:string; // -> field
243
265
};
244
266
```
@@ -249,6 +271,8 @@ Note: Not all members have to be grouped to find rule violations.
249
271
250
272
```ts
251
273
interfaceFoo {
274
+
[Z:string]:any; // -> signature
275
+
252
276
A():void; // -> method
253
277
254
278
new (); // -> constructor
@@ -259,6 +283,8 @@ interface Foo {
259
283
260
284
```ts
261
285
typeFoo= {
286
+
// no signature
287
+
262
288
A():void; // -> method
263
289
264
290
// no constructor
@@ -269,6 +295,8 @@ type Foo = {
269
295
270
296
```ts
271
297
classFoo {
298
+
[Z:string]:any; // -> signature
299
+
272
300
publicstatic A():void {} // -> method
273
301
public B():void {} // -> method
274
302
@@ -282,6 +310,8 @@ class Foo {
282
310
283
311
```ts
284
312
const Foo =class {
313
+
[Z:string]:any; // -> signature
314
+
285
315
publicstatic A():void {} // -> method
286
316
public B():void {} // -> method
287
317
@@ -311,6 +341,8 @@ class Foo {
311
341
312
342
publicstatic A():void {} // (irrelevant)
313
343
344
+
[Z:string]:any; // (irrelevant)
345
+
314
346
public B():void {} // -> public instance method
315
347
}
316
348
```
@@ -321,6 +353,8 @@ Note: Public instance methods should come first before public static fields. Eve
321
353
const Foo =class {
322
354
private C:string; // (irrelevant)
323
355
356
+
[Z:string]:any; // (irrelevant)
357
+
324
358
publicstatic E:string; // -> public static field
325
359
326
360
public D:string; // (irrelevant)
@@ -350,6 +384,8 @@ class Foo {
350
384
constructor() {} // (irrelevant)
351
385
352
386
publicstatic A():void {} // (irrelevant)
387
+
388
+
[Z:string]:any; // (irrelevant)
353
389
}
354
390
```
355
391
@@ -359,6 +395,8 @@ const Foo = class {
359
395
360
396
private C:string; // (irrelevant)
361
397
398
+
[Z:string]:any; // (irrelevant)
399
+
362
400
public D:string; // (irrelevant)
363
401
364
402
constructor() {} // (irrelevant)
@@ -384,6 +422,8 @@ class Foo {
384
422
privatestatic D:string; // -> static field
385
423
386
424
publicstatic A:string; // -> public static field
425
+
426
+
[Z:string]:any; // (irrelevant)
387
427
}
388
428
```
389
429
@@ -402,6 +442,8 @@ const foo = class {
402
442
protectedstatic C:string; // -> static field
403
443
privatestatic D:string; // -> static field
404
444
445
+
[Z:string]:any; // (irrelevant)
446
+
405
447
publicstatic A:string; // -> public static field
406
448
};
407
449
```
@@ -424,6 +466,8 @@ class Foo {
424
466
425
467
```ts
426
468
const foo =class {
469
+
[Z:string]:any; // -> signature
470
+
427
471
publicstatic A:string; // -> public static field
428
472
429
473
constructor() {} // -> constructor
@@ -596,11 +640,11 @@ const foo = class {
596
640
597
641
Note: If this is not set, the `default` will automatically be applied to classes expressions as well. If a `interfaces` configuration is provided, only this configuration will be used for `interfaces` (i.e. nothing will be merged with `default`).
598
642
599
-
Note: The configuration for `interfaces` only allows a limited set of member types: `field`, `constructor` and `method`.
643
+
Note: The configuration for `interfaces` only allows a limited set of member types: `signature`, `field`, `constructor` and `method`.
600
644
601
645
Note: The configuration for `interfaces` does not apply to type literals (use `typeLiterals` for them).
Note: If this is not set, the `default` will automatically be applied to classes expressions as well. If a `typeLiterals` configuration is provided, only this configuration will be used for `typeLiterals` (i.e. nothing will be merged with `default`).
632
680
633
-
Note: The configuration for `typeLiterals` only allows a limited set of member types: `field`, `constructor` and `method`.
681
+
Note: The configuration for `typeLiterals` only allows a limited set of member types: `signature`, `field`, `constructor` and `method`.
634
682
635
-
Note: The configuration for `typeLiterals` does not apply to type literals (use `interfaces` for them).
683
+
Note: The configuration for `typeLiterals` does not apply to interfaces (use `interfaces` for them).
0 commit comments