Browse Source
Merge pull request #201 from lincolnpjames/200-resolve-build-issue
Fix build issue
pull/244/head
Hunter Thornsberry
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
7 deletions
-
src/validation/config/position.ts
|
|
|
@ -2,15 +2,11 @@ import type { Message } from "@bufbuild/protobuf"; |
|
|
|
import { Protobuf } from "@meshtastic/js"; |
|
|
|
import { IsArray, IsBoolean, IsEnum, IsInt } from "class-validator"; |
|
|
|
|
|
|
|
const DeprecatedPositionValidationFields = ['gpsEnabled', 'gpsAttemptTime']; |
|
|
|
|
|
|
|
export class PositionValidation |
|
|
|
implements Omit<Protobuf.Config.Config_PositionConfig, keyof Message> |
|
|
|
implements Omit<Protobuf.Config.Config_PositionConfig, keyof Message | typeof DeprecatedPositionValidationFields[number]> |
|
|
|
{ |
|
|
|
@IsBoolean() |
|
|
|
gpsEnabled: boolean; |
|
|
|
|
|
|
|
@IsInt() |
|
|
|
gpsAttemptTime: number; |
|
|
|
|
|
|
|
@IsInt() |
|
|
|
positionBroadcastSecs: number; |
|
|
|
|
|
|
|
|