diff options
Diffstat (limited to 'src/data/composite/wiki-properties/wallpaperParts.js')
-rw-r--r-- | src/data/composite/wiki-properties/wallpaperParts.js | 9 |
1 files changed, 9 insertions, 0 deletions
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 ?? []}, + }; +} |