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

Function getAnnotation

packages/platform/src/HttpApiSchema.ts:98–98  ·  view source on GitHub ↗
(ast: AST.AST, key: symbol)

Source from the content-addressed store, hash-verified

96 ast.annotations
97
98const getAnnotation = <A>(ast: AST.AST, key: symbol): A | undefined => mergedAnnotations(ast)[key] as A
99
100/**
101 * @since 1.0.0

Callers 6

getStatusFunction · 0.85
getEmptyDecodeableFunction · 0.85
getMultipartFunction · 0.85
getMultipartStreamFunction · 0.85
getEncodingFunction · 0.85
SchemaAST.tsFile · 0.85

Calls 1

mergedAnnotationsFunction · 0.85

Tested by

no test coverage detected