fn
normalizeMaskOptions
testedNormalize 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
| Parameter | Type | Description |
|---|---|---|
input | MaskOptionInput | — |
Returns
MaskOptions| Property | Type | Description |
|---|---|---|
mask | Mask | The mask pattern (or a function of state). |
preprocessors? | readonly MaskPreprocessor[] | Normalizers run before conforming. |
postprocessors? | readonly MaskPostprocessor[] | Finishers run after conforming. |
overwriteMode? | OverwriteMode | Insert vs overwrite behavior. |