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

Function linkDecoding

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

Source from the content-addressed store, hash-verified

5762 * @internal
5763 */
5764export function linkDecoding<T>(): <To extends Constraint>(
5765 to: To,
5766 decode: SchemaGetter.Getter<T, NoInfer<To["Type"]>>
5767) => SchemaAST.Link {
5768 return <To extends Constraint>(
5769 to: To,
5770 decode: SchemaGetter.Getter<T, NoInfer<To["Type"]>>
5771 ): SchemaAST.Link => link<T>()(to, { decode, encode: SchemaGetter.forbiddenEncoding })
5772}
5773
5774/** @internal */
5775export const TrueLiterals = Literals(["true", "yes", "on", "1", "y"])

Callers 2

Schema.tsFile · 0.85
graphToArbitraryFunction · 0.85

Calls 1

linkFunction · 0.70

Tested by

no test coverage detected