2.0 Overhaul start
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
import { IsBoolean, IsEnum } from "class-validator";
|
||||
import { IsBoolean, IsEnum } from 'class-validator';
|
||||
|
||||
import { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
import { Protobuf } from '@meshtastic/meshtasticjs';
|
||||
|
||||
export class DeviceValidation implements Protobuf.Config_DeviceConfig {
|
||||
@IsEnum(Protobuf.Config_DeviceConfig_Role)
|
||||
role: Protobuf.Config_DeviceConfig_Role;
|
||||
|
||||
@IsBoolean()
|
||||
serialDisabled: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
factoryReset: boolean;
|
||||
serialEnabled: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
debugLogEnabled: boolean;
|
||||
|
||||
Reference in New Issue
Block a user