Template Literals and Schema Filters in Effect Typescript
Should template literals support filters (such as pattern)?
Currently fails for:
Currently fails for:
Error: Unsupported template literal span
schema (Refinement): a string matching the pattern ^\d+$ & length({ min: 6, max: 7) const test = Schema.TemplateLiteral(
Schema.Literal("A", "B", "C"),
Schema.String.pipe(Schema.pattern(/^\d+$/)).pipe(
Schema.length({ min: 6, max: 7 })
)
)