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

Function encodeUnknownResult

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

Source from the content-addressed store, hash-verified

800 * @since 4.0.0
801 */
802export function encodeUnknownResult<S extends Schema.ConstraintEncoder<unknown>>(
803 schema: S,
804 options?: SchemaAST.ParseOptions
805): (input: unknown, options?: SchemaAST.ParseOptions) => Result.Result<S["Encoded"], SchemaIssue.Issue> {
806 return asResult(encodeUnknownEffect(schema, options))
807}
808
809/**
810 * 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