« 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: f08d83232fb86b8c76359bc9ce1b40d2ebb53062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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';

// TODO: Not templateCompositeFrom.

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