<S extends Constraint>(ast: S["ast"], options?: object): SCreates a schema from an AST (Abstract Syntax Tree) node.
Details
This is the fundamental constructor for all schemas in the Effect Schema library. It takes an AST node and wraps it in a fully-typed schema that preserves all type information and provides the complete schema API.
The make function is used internally to create all primitive schemas like
String, Number, Boolean, etc., as well as more complex schemas. It's
the bridge between the untyped AST representation and the strongly-typed
schema.
export const const make: <S extends Constraint>(
ast: S["ast"],
options?: object
) => S
Creates a schema from an AST (Abstract Syntax Tree) node.
Details
This is the fundamental constructor for all schemas in the Effect Schema
library. It takes an AST node and wraps it in a fully-typed schema that
preserves all type information and provides the complete schema API.
The make function is used internally to create all primitive schemas like
String, Number, Boolean, etc., as well as more complex schemas. It's
the bridge between the untyped AST representation and the strongly-typed
schema.
make: <function (type parameter) S in <S extends Constraint>(ast: S["ast"], options?: object): SS extends Constraint>(ast: S["ast"]ast: function (type parameter) S in <S extends Constraint>(ast: S["ast"], options?: object): SS["ast"], options: object | undefinedoptions?: object) => function (type parameter) S in <S extends Constraint>(ast: S["ast"], options?: object): SS = import InternalSchemaInternalSchema.function make<
S extends Schema.Constraint
>(ast: S["ast"], options?: object): S
make