IMaskToken
interface
Mask
Token emitted by the pattern parser. kind describes what character class the token accepts; consumer flags whether the token slots a user character (#, A, *) or is a literal kept verbatim.
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.
- kindrequisTMaskTokenKind
- Character class accepted by this token. 'digit' matches [0-9], 'letter' matches [a-zA-Z], 'any' matches any char, 'literal' is kept verbatim.
- charrequisstring
- The raw character from the pattern string (e.g. "#", "A", "*", or a literal like "/").
- consumerrequisboolean
- True when this token slots a user-typed character; false for literals that are inserted automatically.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Inspecting parsed tokens