« get me outta code hell

CloseAsideTrackSection.js « album « things « data « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/album/CloseAsideTrackSection.js
blob: 19d486a6de5f4e6849052067ce012a74d4dd4ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Mock thing that stands in for closing an "aside" track section.
// Only exists while loading, is discarded during connect().

import Thing from '#thing';
import {isString} from '#validators';

export class CloseAsideTrackSection extends Thing {
  static [Thing.getPropertyDescriptors] = () => ({
    name: {
      flags: {update: true, expose: true},
      update: {validate: isString},
    },
  });

  static [Thing.yamlDocumentSpec] = {
    fields: {
      'Close Aside Section': {property: 'name'},
    },
  };
}