23 lines
438 B
TypeScript
23 lines
438 B
TypeScript
import { IsArray, IsBoolean, IsNumber, IsString, IsUrl } from "class-validator";
|
|
|
|
import type { RasterSource } from "@core/stores/appStore.ts";
|
|
|
|
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;
|
|
}
|