« get me outta code hell

simpleDate.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/simpleDate.js
blob: 238b906fc4d6c6a451752563dbbbe20d53a51d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// General date type, used as the descriptor for a bunch of properties.
// This isn't dynamic though - it won't inherit from a date stored on
// another object, for example.

import {isDate} from '#validators';

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