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/composite/wiki-properties/wallpaperParts.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/data/composite/wiki-properties/wallpaperParts.js (limited to 'src/data/composite/wiki-properties/wallpaperParts.js') diff --git a/src/data/composite/wiki-properties/wallpaperParts.js b/src/data/composite/wiki-properties/wallpaperParts.js new file mode 100644 index 00000000..23049397 --- /dev/null +++ b/src/data/composite/wiki-properties/wallpaperParts.js @@ -0,0 +1,9 @@ +import {isWallpaperPartList} from '#validators'; + +export default function() { + return { + flags: {update: true, expose: true}, + update: {validate: isWallpaperPartList}, + expose: {transform: value => value ?? []}, + }; +} -- cgit 1.3.0-6-gf8a5