@ceramic-sdk/model-instance-handler v0.2.1 • Docs
Ceramic SDK / @ceramic-sdk/model-instance-handler / assertValidInitHeader
assertValidInitHeader(
definition,header):void
Validates the ModelInstanceDocument header against the Model definition.
• definition: MapIn<RequiredProps<object>, $TypeOf> & MapIn<OptionalProps<object>, $TypeOf> | MapIn<RequiredProps<object>, $TypeOf> & MapIn<OptionalProps<object>, $TypeOf>
definition of the Model that this ModelInstanceDocument belongs to
• header: MapIn<RequiredProps<object>, $TypeOf> & MapIn<OptionalProps<object>, $TypeOf>
the header to validate
void