Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-333

Implement a RelationshipType enum

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Site Backend

      Implement a Typescript enum for referring to a relationship type.
      Example of enums in Typescript: https://www.typescriptlang.org/docs/handbook/enums.html

      As for the format of each type, I suggest something like this: 
      `EditionContainsWork: 10`

      This can then be used when referring to relationship type id.

      I suggest the file `src/client/entity-editor/relationship-editor/types.js`as its logical home.

            prasad39 prasad39
            mr_monkey Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package