@jaysonder/tts-validation
v0.1.0
Published
Shared Zod validation schemas for TTS
Readme
@jaysonder/tts-validation
Shared Zod schemas and inferred types for the Tone TTS server and UI.
Install
npm install @jaysonder/tts-validation zodUsage
import { CreateRoomSchema } from '@jaysonder/tts-validation';
const result = CreateRoomSchema.safeParse(formValues);
if (!result.success) {
console.log(result.error.flatten());
}Publishing
This package is published from the main server repo via the Publish Validation Package GitHub Actions workflow.
