« get me outta code hell

simpleString.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/simpleString.js
blob: 18d651460988aa3e0550d9fd39c5e78fdd24ab9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// General string type. This should probably generally be avoided in favor
// of more specific validation, but using it makes it easy to find where we
// might want to improve later, and it's a useful shorthand meanwhile.

import {isString} from '#validators';

// TODO: Not templateCompositeFrom.

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