MCPcopy Create free account
hub / github.com/Effect-TS/effect / runtimeAnnotate

Function runtimeAnnotate

packages/effect/src/internal/schema/toCodeDocument.ts:325–331  ·  view source on GitHub ↗
(
    annotations: Schema.Annotations.Annotations | undefined,
    method: "annotate" | "annotateKey" = "annotate"
  )

Source from the content-addressed store, hash-verified

323 }
324
325 function runtimeAnnotate(
326 annotations: Schema.Annotations.Annotations | undefined,
327 method: "annotate" | "annotateKey" = "annotate"
328 ): string {
329 const rendered = renderAnnotations(annotations)
330 return rendered === undefined ? "" : `.${method}(${rendered})`
331 }
332
333 function compileCheck(
334 check: SchemaRepresentation.Check,

Callers 3

compileCheckFunction · 0.85
applyNodeFunction · 0.85
onFunction · 0.85

Calls 1

renderAnnotationsFunction · 0.85

Tested by

no test coverage detected