Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MaskFactory

Callable

  • MaskFactory(pattern: string): Mask
  • Creates a new Mask instance for use with {@link module:formatters/utils.withMask withMask}. A MaskFactory is returned for you by the {@link module:formatters/utils.tokens tokens} method and the properties of the {@link module:formatters/utils.MASKS MASKS} object.

    Parameters

    • pattern: string

      The pattern to use with the specified mask.

    Returns Mask

    The Mask instance for use with {@link module:formatters/utils.withMask withMask}.