Skip to content

SchemaShape

SchemaShape = object

Defined in: src/context.ts:29

The shape of a schema: an ARKTYPE OBJECT DEF. Leaf values are arktype defs (“number”, “string.email”, “number > 0”, nested objects…), addressable with dotted paths via the path() pattern element.

[key: string]: unknown

const schema = {
x: "number",
values: { password: "string", confirmPassword: "string" },
} satisfies SchemaShape;