UNPKG

@eulerstream/euler-websocket-sdk

Version:

Browser & Node.JS cross-compatible module for the Euler Stream WebSocket service.

18 lines 856 B
import { z } from "zod"; /** * Creates a Zod schema that coerces string values to boolean. * @param options The options for the coercion, including a default value. */ export declare const coerceBoolean: (options: { default: boolean; }) => z.ZodDefault<z.ZodEffects<z.ZodEnum<["true", "false", "1", "0"]>, boolean, "0" | "1" | "false" | "true">>; /** * Creates a Zod schema that coerces string values to number. * @param options The options for the coercion, including min, max, and default values. */ export declare const coerceNumber: (options: { min?: number; max?: number; default: number; }) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>; //# sourceMappingURL=zod-extra.d.ts.map