related-getter-setter-pairs
Configuration
rslint.config.ts
Rule Details
Enforce that get() types are assignable to their equivalent set() types. A getter and setter for the same property should have compatible types. The getter's return type should be assignable to the setter's parameter type; otherwise it creates a confusing API where writing a value and then reading it back produces a different type.
Examples of incorrect code for this rule:
Examples of correct code for this rule: