Use rome and initial format
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
IsInt,
|
||||
IsNumber,
|
||||
IsString,
|
||||
Length
|
||||
Length,
|
||||
} from "class-validator";
|
||||
|
||||
import { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
@@ -25,4 +25,10 @@ export class DeviceValidation
|
||||
|
||||
@IsInt()
|
||||
nodeInfoBroadcastSecs: number;
|
||||
|
||||
@IsBoolean()
|
||||
doubleTapAsButtonPress: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
isManaged: boolean;
|
||||
}
|
||||
|
||||
@@ -31,4 +31,7 @@ export class DisplayValidation
|
||||
|
||||
@IsBoolean()
|
||||
headingBold: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
wakeOnTapOrMotion: boolean;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
IsIP,
|
||||
IsOptional,
|
||||
IsString,
|
||||
Length
|
||||
Length,
|
||||
} from "class-validator";
|
||||
|
||||
import { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
@@ -3,8 +3,7 @@ import { IsBoolean, IsInt, IsNumber } from "class-validator";
|
||||
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
export class PositionValidation
|
||||
implements
|
||||
Omit<Protobuf.Config_PositionConfig, keyof Protobuf.native.Message>
|
||||
implements Omit<Protobuf.Config_PositionConfig, keyof Protobuf.native.Message>
|
||||
{
|
||||
@IsInt()
|
||||
positionBroadcastSecs: number;
|
||||
@@ -32,4 +31,10 @@ export class PositionValidation
|
||||
|
||||
@IsInt()
|
||||
txGpio: number;
|
||||
|
||||
@IsInt()
|
||||
broadcastSmartMinimumDistance: number;
|
||||
|
||||
@IsInt()
|
||||
broadcastSmartMinimumIntervalSecs: number;
|
||||
}
|
||||
|
||||
@@ -30,4 +30,7 @@ export class PowerValidation
|
||||
|
||||
@IsInt()
|
||||
minWakeSecs: number;
|
||||
|
||||
@IsInt()
|
||||
deviceBatteryInaAddress: number;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsBoolean, Length } from "class-validator";
|
||||
import { IsBoolean, IsString, Length } from "class-validator";
|
||||
|
||||
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
@@ -23,4 +23,13 @@ export class MQTTValidation
|
||||
|
||||
@IsBoolean()
|
||||
jsonEnabled: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
tlsEnabled: boolean;
|
||||
|
||||
@IsString()
|
||||
root: string;
|
||||
|
||||
@IsBoolean()
|
||||
proxyToClientEnabled: boolean;
|
||||
}
|
||||
|
||||
@@ -26,4 +26,7 @@ export class SerialValidation
|
||||
|
||||
@IsEnum(Protobuf.ModuleConfig_SerialConfig_Serial_Mode)
|
||||
mode: Protobuf.ModuleConfig_SerialConfig_Serial_Mode;
|
||||
|
||||
@IsBoolean()
|
||||
overrideConsoleSerialPort: boolean;
|
||||
}
|
||||
|
||||
@@ -20,4 +20,10 @@ export class TelemetryValidation
|
||||
|
||||
@IsBoolean()
|
||||
environmentDisplayFahrenheit: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
airQualityEnabled: boolean;
|
||||
|
||||
@IsInt()
|
||||
airQualityInterval: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user