simian 0.1.0

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
17
import { z } from 'zod'

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

export const HeadingElementSchema = BlockBaseSchema.extend({
  id: z
    .string()
    .describe(
      'A unique id representing this heading element inside the editor content',
    ),
  children: z
    .array(TextElementSchema)
    .describe('Inline elements that compose this heading content'),
  level: z.number().int(),
  type: z.literal('heading'),
})