Skip to content

Type specifications

Stian Håklev edited this page Aug 7, 2017 · 2 revisions

For operators:

meta: {
  types: {
    incoming: ['any'],
    outgoing: ['any'],
    incomingStructure: 'all',
    outgoingStructure: formData =>
      formData.individual ? 'individual' : { groupingKey: formData.grouping }
  }
}

Each value can be either static or a function, which takes formData as input. Incoming/outgoing should be a type definition as specified in Type definitions. outgoing can use any-?* as back-references incoming. incomingStructure and outgoingStructure should be 'all' | 'individual' | { groupingKey: string }