MCPcopy
hub / github.com/Effect-TS/effect / asSchema

Function asSchema

packages/effect/src/Schema.ts:305–309  ·  view source on GitHub ↗
(
  schema: S
)

Source from the content-addressed store, hash-verified

303 * @since 3.10.0
304 */
305export function asSchema<S extends Schema.All>(
306 schema: S
307): Schema<Schema.Type<S>, Schema.Encoded<S>, Schema.Context<S>> {
308 return schema as any
309}
310
311/**
312 * @category formatting

Callers 15

ArrayEnsureFunction · 0.85
NonEmptyArrayEnsureFunction · 0.85
RedactedFunction · 0.85
OptionFunction · 0.85
OptionFromNullOrFunction · 0.85
OptionFromNullishOrFunction · 0.85
OptionFromUndefinedOrFunction · 0.85
EitherFunction · 0.85
EitherFromUnionFunction · 0.85
ReadonlyMapFunction · 0.85
mapFunction · 0.85
ReadonlySetFunction · 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…