Mapping from an attribute type to a set of requirements.
allowTypes({
number: {
allowedStyles: ['decimal', 'percent'],
allowedOptions: ['currencyDisplay', 'useGrouping', 'minimumIntegerDigits'],
},
selectOrdinal: {
allowedCategories: ['one', 'many', 'few', 'other'],
requiredCategories: ['other']
}
});
Restricts what argument styles, options and categories are allowed for a particular argument type.