Template Literals and Schema Filters in Effect Typescript

Should template literals support filters (such as pattern)?

  const test = Schema.TemplateLiteral(
    Schema.Literal("A", "B", "C"),
    Schema.String.pipe(Schema.pattern(/^\d+$/)).pipe(
      Schema.length({ min: 6, max: 7 })
    )
  )


Currently fails for:
  Error: Unsupported template literal span
  schema (Refinement): a string matching the pattern ^\d+$ & length({ min: 6, max: 7)
Was this page helpful?