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

Function makeCompositeAtKey

packages/effect/src/SchemaIssue.ts:600–613  ·  view source on GitHub ↗
(
  compositeAst: SchemaAST.AST,
  pointerKey: PropertyKey,
  pointerIssue: Issue,
  compositeInput: unknown,
  parseOptions?: SchemaAST.ParseOptions
)

Source from the content-addressed store, hash-verified

598
599/** @internal */
600export function makeCompositeAtKey(
601 compositeAst: SchemaAST.AST,
602 pointerKey: PropertyKey,
603 pointerIssue: Issue,
604 compositeInput: unknown,
605 parseOptions?: SchemaAST.ParseOptions
606): Composite {
607 return new Composite(
608 compositeAst,
609 [new Pointer([pointerKey], pointerIssue)],
610 compositeInput,
611 parseOptions
612 )
613}
614
615/**
616 * Represents a schema issue produced when a forbidden operation is encountered during parsing,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected