« get me outta code hell

soupyFind.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/soupyFind.js
blob: 877985882f78bba955bb151d6d6afd3346841344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {input} from '#composite';
import {isObject} from '#validators';

function soupyFind() {
  return {
    flags: {update: true},
    update: {validate: isObject},
  };
}

soupyFind.input = key =>
  input.value('_soupyFind:' + key);

export default soupyFind;