summaryrefslogtreecommitdiff
path: root/src/types/LallansIssue.d.ts
blob: 66deb6a437588141e831a6e2a19594c5882302d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import type Date from './Date';
import type LallansIssueNumber from './LallansIssueNumber';
import type Price from './Price';

type LallansIssue = {
  issueNumber: LallansIssueNumber;
  img: {
    width192: ImageMetadata;
    width274: ImageMetadata;
  };
  issueName: string;
  uploadDate: Date;
  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;