test(linter/no-unused-vars): ensure type annotations on property accessors are considered used (#5183)

This commit is contained in:
DonIsaac 2024-08-25 01:02:51 +00:00
parent 49cd5db54f
commit a877e5a612

View file

@ -904,6 +904,13 @@ fn test_type_references() {
export const API_PERMISSIONS = {} as const;
",
"
type Foo = 'foo' | 'bar';
export class Bar {
accessor x: Foo
accessor y!: Foo
}
",
];
let fail = vec![