MFML - v0.0.4
    Preparing search index...
    • Restricts what argument styles, options and categories are allowed for a particular argument type.

      Parameters

      • allowedTypes: { [type: string]: TypeRequirements }

        Mapping from an attribute type to a set of requirements.

      Returns Postprocessor

      allowTypes({
      number: {
      allowedStyles: ['decimal', 'percent'],
      allowedOptions: ['currencyDisplay', 'useGrouping', 'minimumIntegerDigits'],
      },
      selectOrdinal: {
      allowedCategories: ['one', 'many', 'few', 'other'],
      requiredCategories: ['other']
      }
      });
      import allowTypes, { defaultAllowedTypes } from 'mfml/postprocessor/allowTypes';

      allowTypes(defaultAllowedTypes);