27 lines
422 B
TypeScript
27 lines
422 B
TypeScript
import { IsBoolean, IsInt } from "class-validator";
|
|
|
|
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
|
|
|
export class AmbientLightingValidation
|
|
implements
|
|
Omit<
|
|
Protobuf.ModuleConfig_AmbientLightingConfig,
|
|
keyof Protobuf.native.Message
|
|
>
|
|
{
|
|
@IsBoolean()
|
|
ledState: boolean;
|
|
|
|
@IsInt()
|
|
current: number;
|
|
|
|
@IsInt()
|
|
red: number;
|
|
|
|
@IsInt()
|
|
green: number;
|
|
|
|
@IsInt()
|
|
blue: number;
|
|
}
|