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

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