Optional
noNullPrototype?: booleanDo not generate records with null prototype
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.
Constraints to be applied on record