add paxcounter config

This commit is contained in:
pdxlocations
2024-02-12 21:24:17 -08:00
parent 21bd61d954
commit edc0be74dc
4 changed files with 75 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { Message } from "@bufbuild/protobuf";
import type { Protobuf } from "@meshtastic/js";
import { IsBoolean, IsInt } from "class-validator";
export class PaxcounterValidation
implements
Omit<Protobuf.ModuleConfig.ModuleConfig_PaxcounterConfig, keyof Message>
{
@IsBoolean()
enabled: boolean;
@IsInt()
paxcounterUpdateInterval: number;
}