type fixes

This commit is contained in:
core 2024-10-27 10:42:39 -04:00
parent d730695936
commit bff5de2e05
Signed by: core
GPG Key ID: FDBF740DADDCEECF
2 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
import { env } from '$env/dynamic/public'; import { env } from '$env/dynamic/public';
export interface MutexLayerSet<ValidOpts> { export interface MutexLayerSet<ValidOpts> {
map1: ValidOpts | null; map1: ValidOpts;
map2: ValidOpts | null; map2: ValidOpts;
map3: ValidOpts | null; map3: ValidOpts;
map4: ValidOpts | null; map4: ValidOpts;
} }
export interface OverlayLayerSet<ValidOpts> { export interface OverlayLayerSet<ValidOpts> {
map1: ValidOpts[]; map1: ValidOpts[];

View File

@ -32,7 +32,7 @@
map3: null, map3: null,
map4: null map4: null
}); });
let overlayLayers: OverlayLayerSet<string[]> = $state({ let overlayLayers: OverlayLayerSet<string> = $state({
map1: [], map1: [],
map2: [], map2: [],
map3: [], map3: [],