MCPcopy Index your code
hub / github.com/Effect-TS/effect / annotations

Method annotations

packages/effect/src/Schema.ts:3167–3169  ·  view source on GitHub ↗
(annotations: Annotations.Schema<Schema.Type<S> & Brand<B>>)

Source from the content-addressed store, hash-verified

3165): brand<S, B> {
3166 return class BrandClass extends make<Schema.Type<S> & Brand<B>, Schema.Encoded<S>, Schema.Context<S>>(ast) {
3167 static override annotations(annotations: Annotations.Schema<Schema.Type<S> & Brand<B>>): brand<S, B> {
3168 return makeBrandClass(this.from, mergeSchemaAnnotations(this.ast, annotations))
3169 }
3170
3171 static make = (a: Brand.Unbranded<Schema.Type<S> & Brand<B>>, options?: MakeOptions): Schema.Type<S> & Brand<B> => {
3172 return getDisableValidationMakeOption(options) ? a : ParseResult.validateSync(this)(a)

Callers

nothing calls this directly

Calls 2

makeBrandClassFunction · 0.85
mergeSchemaAnnotationsFunction · 0.85

Tested by

no test coverage detected