templateLiteral
Builds a parser for a deterministic string shape ("order-${number}", "user-${string}-${number}", etc.). DDataParser.templateLiteral() takes an array mixing primitive parts and compatible sub-parsers without their own checkers (string, number, literal, ...) and returns a strongly typed string parser.
Interactive example
Parameters
template: shape to validate (primitive parts or compatible sub-parsers without their own checkers).pattern:RegExpautomatically generated from the template (manual configuration is rarely needed).checkers:checkerRefineto apply additional rules to the final template literal value.
Return value
A DataParserTemplateLiteral that produces a string matching the provided template. parse → DEither.success<string> or DEither.error<DataParserError>.
