Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Latest commit

 

History

History
25 lines (13 loc) · 840 Bytes

File metadata and controls

25 lines (13 loc) · 840 Bytes

@ceramic-sdk/model-instance-handler v0.2.1Docs


Ceramic SDK / @ceramic-sdk/model-instance-handler / assertValidInitHeader

Function: assertValidInitHeader()

assertValidInitHeader(definition, header): void

Validates the ModelInstanceDocument header against the Model definition.

Parameters

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

Returns

void