Effect CommunityEC
Effect Community2y ago
3 replies
djang0

Handling Custom Annotations in TypeScript Schema Definitions

Hi! do all custom annotations are removed or I'm missing something? like
export const schema = S.Struct({
  foo: S.String,
  bar: S.Number.annotations({
    foo: "bar",
    title: "A title",
  }),
})

console.log(schema.fields.bar.ast.annotations) // foo is removed


And if yes, Is there a way to add some custom metas? thanks!
Was this page helpful?