Optional
requiredKeys?: T[]List keys that should never be deleted.
Remark:
You might need to use an explicit typing in case you need to declare symbols as required (not needed when required keys are simple strings).
With something like { requiredKeys: [mySymbol1, 'a'] as [typeof mySymbol1, 'a'] }
when both mySymbol1
and a
are required.
Warning: Cannot be used in conjunction with withDeletedKeys.
Optional
withDeletedKeys?: booleanAllow to remove keys from the generated record.
Warning: Cannot be used in conjunction with requiredKeys.
Prefer: requiredKeys: []
over withDeletedKeys: true
Optional
noNullPrototype?: booleanDo not generate records with null prototype
Constraints to be applied on record