Is There a Way to Avoid an Annotation Here

I'm getting a typescript error saying I need to annotate the type when I add .brand("ulid"):

export const Ulid = type.string.narrow((v, ctx) =>
  isValidUlid(v) ? true : ctx.mustBe("a valid ULID"),
).brand("ulid");


Is there a way to avoid the annotation?
image.png
Was this page helpful?