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

Function encodeUnknownResult

packages/effect/src/SchemaParser.ts:842–847  ·  view source on GitHub ↗
(
  schema: S,
  options?: SchemaAST.ParseOptions
)

Source from the content-addressed store, hash-verified

840 * @since 4.0.0
841 */
842export function encodeUnknownResult<S extends Schema.ConstraintEncoder<unknown>>(
843 schema: S,
844 options?: SchemaAST.ParseOptions
845): (input: unknown, options?: SchemaAST.ParseOptions) => Result.Result<S["Encoded"], SchemaIssue.Issue> {
846 return asResult(encodeUnknownEffect(schema, options))
847}
848
849/**
850 * Creates an encoder for input already typed as the schema's decoded `Type`,

Callers

nothing calls this directly

Calls 2

asResultFunction · 0.85
encodeUnknownEffectFunction · 0.70

Tested by

no test coverage detected