import { IsBoolean, IsInt, IsNumber, IsString, Length } from "class-validator"; import type { Protobuf } from "@meshtastic/meshtasticjs"; export class ChannelSettingsValidation implements Omit { @IsBoolean() enabled: boolean; @IsString() psk: string; @IsNumber() channelNum: number; @Length(1, 11) name: string; @IsInt() id: number; @IsBoolean() uplinkEnabled: boolean; @IsBoolean() downlinkEnabled: boolean; }