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

Function link

packages/effect/src/Schema.ts:6510–6520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6508 * @since 4.0.0
6509 */
6510export function link<T>() {
6511 return <To extends Constraint>(
6512 encodeTo: To,
6513 transformation: {
6514 readonly decode: SchemaGetter.Getter<T, NoInfer<To["Type"]>>
6515 readonly encode: SchemaGetter.Getter<NoInfer<To["Type"]>, T>
6516 }
6517 ): SchemaAST.Link => {
6518 return new SchemaAST.Link(encodeTo.ast, SchemaTransformation.make(transformation))
6519 }
6520}
6521
6522// -----------------------------------------------------------------------------
6523// Checks

Callers 13

OptionFunction · 0.70
ResultFunction · 0.70
RedactedFunction · 0.70
CauseReasonFunction · 0.70
CauseFunction · 0.70
ErrorInstanceFunction · 0.70
ExitFunction · 0.70
ReadonlyMapFunction · 0.70
HashMapFunction · 0.70
ReadonlySetFunction · 0.70
HashSetFunction · 0.70
ChunkFunction · 0.70

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected