« get me outta code hell

data: Album.wallpaperParts - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/validators.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-01-06 19:41:24 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-01-06 19:42:00 -0400
commit405ccfd6c813398fc0e919caeff922bc1c3d9dd0 (patch)
tree8e6b8ea8d253da8690d1ecdd28a2d09163f59587 /src/data/validators.js
parenta2488d2f5f5d1b9ef096c2d9968c56e6439adcac (diff)
data: Album.wallpaperParts
Diffstat (limited to 'src/data/validators.js')
-rw-r--r--src/data/validators.js7
1 files changed, 7 insertions, 0 deletions
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);