UNPKG

@battle-racing/br-common-lib

Version:

Common library for all Battle Racing Repositorios

14 lines (13 loc) 785 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ballSensorDiskThrowerModuleStatusSchema = exports.configureBallSensorDiskThrowerModuleOptionsSchema = exports.ballSensorStatusSchema = exports.ballSensorCommandSchema = void 0; const zod_1 = require("zod"); const BallSensor_const_1 = require("./BallSensor.const"); exports.ballSensorCommandSchema = zod_1.z.enum(BallSensor_const_1.BALL_SENSOR_COMMAND); exports.ballSensorStatusSchema = zod_1.z.enum(BallSensor_const_1.BALL_SENSOR_STATUS); exports.configureBallSensorDiskThrowerModuleOptionsSchema = zod_1.z.object({ waitTimeAfterHit: zod_1.z.number().min(1).max(25), }); exports.ballSensorDiskThrowerModuleStatusSchema = zod_1.z.object({ ballSensorStatus: exports.ballSensorStatusSchema, });