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

Function record

packages/effect/src/SchemaAST.ts:4646–4652  ·  view source on GitHub ↗
(key: AST, value: AST)

Source from the content-addressed store, hash-verified

4644
4645/** @internal */
4646export function record(key: AST, value: AST): Objects {
4647 const { literals, parameters: indexSignatures } = parseParameter(key)
4648 return new Objects(
4649 literals.map((literal) => new PropertySignature(literal, value)),
4650 indexSignatures.map((parameter) => new IndexSignature(parameter, value))
4651 )
4652}
4653
4654// -------------------------------------------------------------------------------------
4655// Public APIs

Callers

nothing calls this directly

Calls 2

parseParameterFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected