MCPcopy Create free account
hub / github.com/effect-app/libs / isSchema

Function isSchema

repos/effect/packages/effect/src/Schema.ts:2205–2207  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

2203export function encodeUnknownSync<S extends ConstraintEncoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) {
2204 const parser = encodeUnknownEffect(schema, options)
2205 return (input: unknown, options?: SchemaAST.ParseOptions): S["Encoded"] => {
2206 return runSchemaErrorSync(parser(input, options) as Effect.Effect<S["Encoded"], SchemaError>)
2207 }
2208}
2209/**
2210 * Encodes a typed input (the schema's `Type`) against a schema synchronously,

Callers 3

HMR.test.tsFile · 0.85
templateLiteralFromPartsFunction · 0.85
isStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…