TemplateLiteral optional part

Is there a better way to handle optional chunk in Schema.TemplateLiteral than to do ?
Schema.TemplateLiteral(
    Schema.Literal("required"),
    Schema.Literal("optional", ""), 
    Schema.Literal("required"),
);
Was this page helpful?