606 B
606 B
SignalOptionsSchema
Zod boundary schema for Signal construction options.
Purpose
Validates the options passed when constructing a Signal.
Features
- Optional
initialValueas positive number
Usage
import { SignalOptionsSchema } from "@suaveplan/audio-transport";
const parsed = SignalOptionsSchema.safeParse({ initialValue: 130 });
API Reference
SignalOptionsSchema—z.object({ initialValue })
Implementation Notes
The schema is minimal because Signal only needs an initial value. All other behavior is controlled via method calls after construction.