MCPcopy
hub / github.com/Effect-TS/effect / annotations

Function annotations

packages/platform/src/HttpApiSchema.ts:153–163  ·  view source on GitHub ↗
(
  annotations: Schema.Annotations.Schema<NoInfer<A>> & {
    readonly status?: number | undefined
  }
)

Source from the content-addressed store, hash-verified

151 * @category annotations
152 */
153export const annotations = <A>(
154 annotations: Schema.Annotations.Schema<NoInfer<A>> & {
155 readonly status?: number | undefined
156 }
157): Schema.Annotations.Schema<A> => {
158 const result: Record<symbol, unknown> = Struct.omit(annotations, "status")
159 if (annotations.status !== undefined) {
160 result[AnnotationStatus] = annotations.status
161 }
162 return result
163}
164
165/**
166 * @since 1.0.0

Callers 2

EmptyFunction · 0.70
HttpApiSchema.tsFile · 0.70

Calls 3

omitMethod · 0.65
annotationsMethod · 0.65
makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…