Schemas and type definitions for core kapeta types.
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";