From ab2f15dcc05350567b08460679c87d7e01af87a6 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Fri, 4 Aug 2023 19:12:38 +0100 Subject: Defines LallansIssue type --- frontend/src/types/LallansIssue.d.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 frontend/src/types/LallansIssue.d.ts 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 +); + +type Contributor = string; +type Contribution = { author?: string, title: string }; + +export default LallansIssue; \ No newline at end of file -- cgit v1.2.3