15 lines
356 B
TypeScript
15 lines
356 B
TypeScript
import { IsBoolean, IsEnum } from "class-validator";
|
|
|
|
import { Protobuf } from "@meshtastic/meshtasticjs";
|
|
|
|
export class DeviceValidation implements Protobuf.Config_DeviceConfig {
|
|
@IsEnum(Protobuf.Config_DeviceConfig_Role)
|
|
role: Protobuf.Config_DeviceConfig_Role;
|
|
|
|
@IsBoolean()
|
|
serialEnabled: boolean;
|
|
|
|
@IsBoolean()
|
|
debugLogEnabled: boolean;
|
|
}
|