Whether a value satisfies a declared attribute type. Exported because the check is not only the tag schema's: a hook declares its own attributes (item 321), and a game's [hook] invocations are checked against that declaration by the same rule.
[hook]
import { validAttributeValue } from '@datamoc/mw_games/mwl';console.log(validAttributeValue('yes', 'boolean')); // true Copy
import { validAttributeValue } from '@datamoc/mw_games/mwl';console.log(validAttributeValue('yes', 'boolean')); // true
Whether a value satisfies a declared attribute type. Exported because the check is not only the tag schema's: a hook declares its own attributes (item 321), and a game's
[hook]invocations are checked against that declaration by the same rule.