@kapeta/schemas
v3.7.2
Published
Contains the schemas for all core kapeta types.
Downloads
1,486
Readme
@kapeta/schemas
Schemas and type definitions for core kapeta types.
Usage
Runtime schema validation:
import { validateSchema } from "@kapeta/schemas";
const errors = await validateSchema("core/plan", maybeValidPlan);
console.log(errors);
Compile time validation and autocomplete:
import type { Plan } from "@kapeta/schemas";