Validate that only expected keys are present on an object
The stored object
The unknown value to validate types of
The only keys that should be present
Validate that the types passed for an object are expected
The stored object
The unknown value to validate types of
A map of expected keys for an object to expected types, checked like typeof value[key] === typesMap[key]
Generated using TypeDoc
Validations meant to be used with
storeObject
's validate function