Accessors
Interface: Accessors
Defined in: packages/models/src/types.ts:325
Marker interface to opt a class into automatic accessor generation.
Classes implementing this interface will have their properties whose types
have a set method (or are in the coercion registry) transformed into
getter/setter pairs — just like model classes.
Example
class MFA implements Accessors {
secret!: SecretString; // SecretString has set(value: string)
// → getter returns SecretString, setter accepts string | SecretString
}