Accessing Schema Annotations in Effect TypeScript Library

hi, i have schema with annotations like this, and i want to access particular fields, like description, examples, data type, required or not, etc. any idea how can i access?
Schema.Struct({
  test: Schema.optionalWith(
    Schema.NullOr(Schema.String).pipe(
      Schema.annotations({
        description: 'Test',
        examples: ['test'],
      })
    ),
    { default: () => null }
  ),
})
Was this page helpful?