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

Function getConstructorDescriptor

packages/effect/src/SchemaAST.ts:4090–4094  ·  view source on GitHub ↗
(ast: AST)

Source from the content-addressed store, hash-verified

4088
4089/** @internal */
4090export function getConstructorDescriptor(ast: AST): ConstructorDescriptor | undefined {
4091 if (!isDeclaration(ast)) return undefined
4092 const getDescriptor = ast.annotations?.[InternalAnnotations.CONSTRUCTOR_ANNOTATION_KEY]
4093 return Predicate.isFunction(getDescriptor) ? getDescriptor(ast.typeParameters) : undefined
4094}
4095
4096/**
4097 * Returns all annotations from the AST node.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected