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