@stamp/required
Insist on a method/property/staticProperty/configuration presence
This stamp (aka behavior) will throw if a method (property, staticProperty, configuration, etc) is missing at object creation.
Usage
import Required from '@stamp/required'
const InsistOnRedrawMethod = Required.required({methods: {redraw: Required}})Or if you don't want to import the stamp you can import only the method:
import {required} from '@stamp/required'
const InsistOnRedrawMethod = required({methods: {redraw: required}})API
Static methods
required
Setup which things are required stamp.required({METATYPE: {KEY: required}}) -> Stamp
Example
Last updated