You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
438 B
22 lines
438 B
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;
|
|
}
|
|
|