« get me outta code hell

dimensions.js « wiki-properties « composite « data « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-properties/dimensions.js
blob: 57a0127994060736e47f4997a5f52877d7df3cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Plain ol' image dimensions. This is a two-item array of positive integers,
// corresponding to width and height respectively.

import {isDimensions} from '#validators';

// TODO: Not templateCompositeFrom.

export default function() {
  return {
    flags: {update: true, expose: true},
    update: {validate: isDimensions},
  };
}