simian 0.1.1

A command-line tool for exploring and implementing Machine Learning algorithms in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { z } from 'zod'

import { BlockBaseSchema } from '@/ui/editor/block/schema'
import { BlockElementSchema } from '@/ui/editor/schema/block'

export const RootElementSchema = BlockBaseSchema.extend({
  id: z
    .string()
    .describe(
      'A unique id representing the whole editor instance which has this root element as its root node.',
    ),
  children: z
    .array(BlockElementSchema)
    .describe('All the block elements that compose the editor document.'),
  type: z.literal('root'),
}).describe('This is the root node of the editor document tree.')