Constructs an object whose properties are optional and which keys are Keys and property values are T.
Keys
T
A string type, likely string template
string
Any type that can fit into an object
Complementary to Mapped.
const stringValidator: PartiallyMapped< 'username' | 'email', ( field: string ) => boolean > = { username: ( field: string ) => regex.validate( 'username', field )}; Copy
const stringValidator: PartiallyMapped< 'username' | 'email', ( field: string ) => boolean > = { username: ( field: string ) => regex.validate( 'username', field )};
Constructs an object whose properties are optional and which keys are
Keysand property values areT.