IResolvedMaskConfig
interface
Form & Input
Normalised mask configuration returned by resolveMaskConfig after accepting a raw string pattern, a preset key, or an IMaskOptions object as input. At this layer the pattern is always a raw template string and every field is guaranteed non-optional.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- patternrequisstring
- Raw token-walker template string. # = digit, A = letter, * = any char, other characters are literals.
- validatorrequisTPatternValidator | null
- Optional secondary validation function applied to the unmasked value. null when no validator was provided.
- requiredrequisboolean
- When true, isValid returns false until every consumer token in the pattern is filled.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Consuming a resolved mask config in useMask