add optional to publishIntervalSecs and positionPrecision
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import type { Message } from "@bufbuild/protobuf";
|
import type { Message } from "@bufbuild/protobuf";
|
||||||
import type { Protobuf } from "@meshtastic/js";
|
import type { Protobuf } from "@meshtastic/js";
|
||||||
import { IsBoolean, IsString, Length, IsNumber } from "class-validator";
|
import { IsBoolean, IsString, Length, IsNumber, IsOptional } from "class-validator";
|
||||||
|
|
||||||
export class MqttValidation
|
export class MqttValidation
|
||||||
implements
|
implements
|
||||||
@@ -46,9 +46,11 @@ export class MqttValidationMapReportSettings
|
|||||||
implements
|
implements
|
||||||
Omit<Protobuf.ModuleConfig.ModuleConfig_MapReportSettings, keyof Message>
|
Omit<Protobuf.ModuleConfig.ModuleConfig_MapReportSettings, keyof Message>
|
||||||
{
|
{
|
||||||
|
@IsOptional()
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
publishIntervalSecs: number;
|
publishIntervalSecs: number;
|
||||||
|
|
||||||
|
@IsOptional()
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
positionPrecision: number;
|
positionPrecision: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user