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

import { TextSchema } from '../addon/text/schema'
import { ValElementSchema } from '../addon/val/schema'

export const inlineSchemas = [ValElementSchema] as const

export const InlineElementSchema = z.discriminatedUnion('type', inlineSchemas)
export const TextElementSchema = z.union([InlineElementSchema, TextSchema])