17 lines
259 B
TypeScript
17 lines
259 B
TypeScript
import * as v from 'valibot';
|
|
|
|
/**
|
|
* @category Schemas
|
|
*/
|
|
const circleSchema = v.object({
|
|
id: v.string(),
|
|
title: v.string(),
|
|
});
|
|
|
|
/**
|
|
* @category Entity types
|
|
*/
|
|
type Circle = v.InferOutput<typeof circleSchema>;
|
|
|
|
export { circleSchema, type Circle };
|