diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2023-08-04 19:12:38 +0100 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2023-08-04 19:12:38 +0100 |
| commit | ab2f15dcc05350567b08460679c87d7e01af87a6 (patch) | |
| tree | a668d84830b0be74505bd7d65fbcb2a830f58125 | |
| parent | 5caf489fbb065a19479ad375cb13f0b9651fadea (diff) | |
Defines LallansIssue type
| -rw-r--r-- | frontend/src/types/LallansIssue.d.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/frontend/src/types/LallansIssue.d.ts b/frontend/src/types/LallansIssue.d.ts new file mode 100644 index 0000000..2f6355d --- /dev/null +++ b/frontend/src/types/LallansIssue.d.ts @@ -0,0 +1,23 @@ +import type LallansIssueNumber from './LallansIssueNumber'; +import type Price from './Price'; + +type LallansIssue = { + issueNumber: LallansIssueNumber, + issueName: string, + price: Price, + description: { + sco: string, + 'en-GB': string, + }, + coverArtist?: string, + trackList?: string[], +} & ( + { contributors: Contributor[] } | + { contributions: Contribution[] } | + Record<string, never> +); + +type Contributor = string; +type Contribution = { author?: string, title: string }; + +export default LallansIssue;
\ No newline at end of file |
