aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/taxonomies.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/ts/types/taxonomies.ts')
-rw-r--r--src/ts/types/taxonomies.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ts/types/taxonomies.ts b/src/ts/types/taxonomies.ts
new file mode 100644
index 0000000..dd45852
--- /dev/null
+++ b/src/ts/types/taxonomies.ts
@@ -0,0 +1,14 @@
+import { Cover } from './cover';
+
+type TaxonomyPreview = {
+ databaseId: number;
+ id: string;
+ slug: string;
+ title: string;
+};
+
+export type SubjectPreview = TaxonomyPreview & {
+ cover: Cover;
+};
+
+export type ThematicPreview = TaxonomyPreview;