summaryrefslogtreecommitdiff
path: root/src/types/LallansIssue.d.ts
blob: 2f6355dd47f7255f28dfdefbfa015b9285439df6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;