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

Function getStatus

packages/platform/src/HttpApiSchema.ts:104–105  ·  view source on GitHub ↗
(ast: AST.AST, defaultStatus: number)

Source from the content-addressed store, hash-verified

102 * @category annotations
103 */
104export const getStatus = (ast: AST.AST, defaultStatus: number): number =>
105 getAnnotation<number>(ast, AnnotationStatus) ?? defaultStatus
106
107/**
108 * @since 1.0.0

Callers 4

getStatusSuccessASTFunction · 0.85
getStatusErrorASTFunction · 0.85
schemaToResponseFunction · 0.85
processFunction · 0.85

Calls 1

getAnnotationFunction · 0.85

Tested by

no test coverage detected