« get me outta code hell

additional-name.js « things « data « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/additional-name.js
blob: 4c23f291bf97c08d5e44c3839bf62449e8c083de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Thing from '#thing';

import {contentString, thing} from '#composite/wiki-properties';

export class AdditionalName extends Thing {
  static [Thing.getPropertyDescriptors] = () => ({
    // Update & expose

    thing: thing(),

    name: contentString(),
    annotation: contentString(),
  });

  static [Thing.yamlDocumentSpec] = {
    fields: {
      'Name': {property: 'name'},
      'Annotation': {property: 'annotation'},
    },
  };
}