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

Function decodeTo

packages/effect/src/SchemaAST.ts:4596–4602  ·  view source on GitHub ↗
(
  from: AST,
  to: A,
  transformation: SchemaTransformation.Transformation<any, any, any, any>
)

Source from the content-addressed store, hash-verified

4594 * @since 4.0.0
4595 */
4596export function decodeTo<A extends AST>(
4597 from: AST,
4598 to: A,
4599 transformation: SchemaTransformation.Transformation<any, any, any, any>
4600): A {
4601 return appendTransformation(from, transformation, to)
4602}
4603
4604function parseParameter(ast: AST): {
4605 literals: ReadonlyArray<PropertyKey>

Callers 1

templateLiteralParserFunction · 0.70

Calls 1

appendTransformationFunction · 0.85

Tested by

no test coverage detected