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

Function make

packages/effect/src/SchemaParser.ts:107–109  ·  view source on GitHub ↗
(schema: S)

Source from the content-addressed store, hash-verified

105 * @since 4.0.0
106 */
107export function make<S extends Schema.Constraint>(schema: S) {
108 return makeConstructorSync<S["Type"], S["~type.make.in"]>(SchemaAST.toType(schema.ast))
109}
110
111/**
112 * Creates a type guard that checks whether an input satisfies the schema's decoded

Callers 1

constructSyncFunction · 0.70

Calls 1

makeConstructorSyncFunction · 0.85

Tested by

no test coverage detected