fix: типизировать настройку граней окна (#577)

Issue: #577
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-15 00:17:41 +03:00
parent db4b397e2e
commit 6f6a85a116
44 changed files with 411 additions and 409 deletions
+3 -1
View File
@@ -690,7 +690,9 @@ export const SUN_RAY_ORIGINS = ['inner', 'outer'] as const; // #577 parity
export type SunRayOrigin = (typeof SUN_RAY_ORIGINS)[number];
/** Global window-light source; unknown/legacy values preserve the old geometry. */
export function sunRayOriginOf(settings: any): SunRayOrigin {
export function sunRayOriginOf(
settings: { sun_ray_origin?: unknown } | null | undefined,
): SunRayOrigin {
return settings?.sun_ray_origin === 'outer' ? 'outer' : 'inner';
}