summaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-07 19:41:11 +0100
committerGitHub <noreply@github.com>2023-08-07 19:41:11 +0100
commite08094210c15ee0114ae4f11142aa5f89d81c7aa (patch)
treebfa129cae6a2b981d5b6dc5c3cc16cfb2bc5c95a /src/types
parent925f6de56ef43013583a48dbc49a350ee84cdb3e (diff)
parent2fcbccfbd49c6eaf433272749e32589a6f490200 (diff)
Merge branch 'master' into master
Diffstat (limited to 'src/types')
-rw-r--r--src/types/Digit.d.ts2
-rw-r--r--src/types/LallansIssue.d.ts23
-rw-r--r--src/types/LallansIssueNumber.d.ts12
-rw-r--r--src/types/Price.d.ts2
4 files changed, 37 insertions, 2 deletions
diff --git a/src/types/Digit.d.ts b/src/types/Digit.d.ts
index 0723a63..11c252a 100644
--- a/src/types/Digit.d.ts
+++ b/src/types/Digit.d.ts
@@ -1,3 +1,3 @@
type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
-export default Digit; \ No newline at end of file
+export default Digit;
diff --git a/src/types/LallansIssue.d.ts b/src/types/LallansIssue.d.ts
new file mode 100644
index 0000000..2f6355d
--- /dev/null
+++ b/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<string, never>
+);
+
+type Contributor = string;
+type Contribution = { author?: string, title: string };
+
+export default LallansIssue; \ No newline at end of file
diff --git a/src/types/LallansIssueNumber.d.ts b/src/types/LallansIssueNumber.d.ts
new file mode 100644
index 0000000..10d068e
--- /dev/null
+++ b/src/types/LallansIssueNumber.d.ts
@@ -0,0 +1,12 @@
+type LallansIssueNumber =
+ 21 | 22 | 23 | 24 | 25 | 27 | 29 |
+ 30 | 33 | 35 | 36 | 38 | 39 |
+ 41 | 42 | 43 | 45 | 46 | 47 | 48 | 49 |
+ 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 59 |
+ 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 |
+ 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
+ 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 |
+ 90 | 91 | 92 | 93 | 96 | 97 | 98 | 99 |
+ 100 | 101;
+
+export default LallansIssueNumber;
diff --git a/src/types/Price.d.ts b/src/types/Price.d.ts
index e8d6157..fc9d9fb 100644
--- a/src/types/Price.d.ts
+++ b/src/types/Price.d.ts
@@ -2,4 +2,4 @@ import type Digit from "./Digit";
type Price = `${bigint | ''}.${Digit}${Digit}`;
-export default Price; \ No newline at end of file
+export default Price;