Files
meshtastic-web/src/validation/appConfig/map.ts
T
2022-11-27 22:50:46 +10:00

23 lines
440 B
TypeScript

import { IsArray, IsBoolean, IsNumber, IsString } from "class-validator";
import type { RasterSource } from "@app/core/stores/appStore.js";
export class MapValidation {
@IsArray()
rasterSources: MapValidation_RasterSources[];
}
export class MapValidation_RasterSources implements RasterSource {
@IsBoolean()
enabled: boolean;
@IsString()
title: string;
// @IsUrl()
tiles: string[];
@IsNumber()
tileSize: number;
}