fn

normalizeMaskOptions

tested

Normalize the friendly authoring union to full MaskOptions: a template string is compiled via maskFromTemplate, a bare mask is wrapped, and full options pass through.

Signature

ts
export function normalizeMaskOptions(input: MaskOptionInput): MaskOptions{ ... }

Parameters

ParameterTypeDescription
inputMaskOptionInput

Returns

MaskOptions
PropertyTypeDescription
maskMaskThe mask pattern (or a function of state).
preprocessors?readonly MaskPreprocessor[]Normalizers run before conforming.
postprocessors?readonly MaskPostprocessor[]Finishers run after conforming.
overwriteMode?OverwriteModeInsert vs overwrite behavior.