From 405ccfd6c813398fc0e919caeff922bc1c3d9dd0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 6 Jan 2025 19:41:24 -0400 Subject: data: Album.wallpaperParts --- src/data/validators.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/data/validators.js') diff --git a/src/data/validators.js b/src/data/validators.js index a17a98cc..84e08cb8 100644 --- a/src/data/validators.js +++ b/src/data/validators.js @@ -724,6 +724,13 @@ export const isSeries = validateProperties({ export const isSeriesList = validateArrayItems(isSeries); +export const isWallpaperPart = validateProperties({ + asset: optional(isString), + style: optional(isString), +}); + +export const isWallpaperPartList = validateArrayItems(isWallpaperPart); + export function isDimensions(dimensions) { isArray(dimensions); -- cgit 1.3.0-6-gf8a5