summaryrefslogtreecommitdiff
path: root/src/types/LallansIssue.d.ts
blob: d8339b1a7052aeb4d787b11227f63903ab1d2d22 (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>
);

export type Contributor = string;
export type Contribution = { author?: string, title: string };

export default LallansIssue;