diff options
Diffstat (limited to 'src/data/validators.js')
-rw-r--r-- | src/data/validators.js | 7 |
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); |