diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-07-15 19:46:30 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-07-15 19:46:30 -0300 |
commit | 537448501439aaa68485e2ac436941656d7250e8 (patch) | |
tree | 11bf102a859acf326a8b9d66192c8e4898f7c331 /src/content/dependencies/generateCoverCarousel.js | |
parent | b493cc4b426910ecfa662f904bc0e01fee236c7a (diff) |
data: split arrayOf validator into {strict,sparse}ArrayOf
Diffstat (limited to 'src/content/dependencies/generateCoverCarousel.js')
-rw-r--r-- | src/content/dependencies/generateCoverCarousel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/generateCoverCarousel.js b/src/content/dependencies/generateCoverCarousel.js index 2a2503ac..e854113e 100644 --- a/src/content/dependencies/generateCoverCarousel.js +++ b/src/content/dependencies/generateCoverCarousel.js @@ -5,8 +5,8 @@ export default { extraDependencies: ['html'], slots: { - images: {validate: v => v.arrayOf(v.isHTML)}, - links: {validate: v => v.arrayOf(v.isHTML)}, + images: {validate: v => v.strictArrayOf(v.isHTML)}, + links: {validate: v => v.strictArrayOf(v.isHTML)}, lazy: {validate: v => v.oneOf(v.isWholeNumber, v.isBoolean)}, }, |