Minor fixes, start channel editor migration

This commit is contained in:
Sacha Weatherstone
2023-02-13 22:45:42 +10:00
parent 292bd59099
commit d79a6965c0
5 changed files with 275 additions and 179 deletions
+11 -4
View File
@@ -1,4 +1,11 @@
import { IsBoolean, IsInt, IsNumber, IsString, Length } from "class-validator";
import {
IsBoolean,
IsEnum,
IsInt,
IsNumber,
IsString,
Length
} from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
@@ -9,12 +16,12 @@ export class ChannelSettingsValidation
@IsBoolean()
enabled: boolean;
@IsString()
psk: string;
@IsNumber()
channelNum: number;
@IsString()
psk: string;
@Length(0, 11)
name: string;