menu
require-accessor-pair
Disallow setters without a matching getter
A write-only property prevents callers from observing the value represented by its setter. Instead, you SHOULD provide a getter in the same property namespace.
Getter-only properties remain valid readonly properties.
Reported
1interface Store {2 set value(next: string);3}Accepted
1interface Store {2 get value(): string;3 set value(next: string);4}