« get me outta code hell

duration.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/duration.js
blob: 827f282ddbbe2b067873b5c62ff3b3f7fc088a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Duration! This is a number of seconds, possibly floating point, always
// at minimum zero.

import {isDuration} from '#validators';

// TODO: Not templateCompositeFrom.

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