Setup which things are required stamp.required({METATYPE: {KEY: required}}) -> Stamp
Example
import stampit from'@stamp/it'import Required, {required} from'@stamp/required'constrequiredConfigurationDifficulty=required({configuration: {difficulty: required}})constrequiredMethodMove=required({methods: {move: Required}})constrequiredPropertyGuild=Required.required({properties: {guild: required}})let Paladin =stampit({ props: { mana:50, strength:50, health:100 }})constpaladin=Paladin() // okPaladin =Paladin.compose( requiredConfigurationDifficulty, requiredMethodMove, requiredPropertyGuild)constpaladin=Paladin() // THROWS - Required: There must be difficulty in this stamp configurationPaladin =Paladin.conf({ difficulty:5 })constpaladin=Paladin() // THROWS - Required: There must be move in this stamp methodsPaladin =Paladin.methods({move(x, y) {// ... implementation }})constpaladin=Paladin() // THROWS - Required: There must be guild in this stamp propertiesPaladin =Paladin.props({ guild:'Warriors of Light' })constpaladin=Paladin() // ok