Skip to content

Commit 1ae094f

Browse files
hkamran80essential-randomness
authored andcommitted
Add series types
1 parent e00c292 commit 1ae094f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

types/entities.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,34 @@ export interface User {
3838
bioHtml: string | null;
3939
}
4040

41+
export interface SeriesWorkSummary
42+
extends Omit<
43+
WorkSummary,
44+
"category" | "publishedAt" | "rating" | "tags" | "stats"
45+
> {
46+
tags: Omit<WorkSummary["tags"], "warnings">;
47+
stats: Omit<WorkSummary["stats"], "comments">;
48+
}
49+
50+
export interface Series {
51+
id: string;
52+
title: string;
53+
begunAt: string;
54+
updatedAt: string;
55+
authors: WorkSummary["authors"];
56+
57+
description: string;
58+
notes: string;
59+
words: number;
60+
stats: {
61+
works: number;
62+
bookmarks: number;
63+
};
64+
completed: boolean;
65+
66+
works: WorkSummary[];
67+
}
68+
4169
export enum WorkRatings {
4270
NOT_RATED = "Not Rated",
4371
GENERAL_AUDIENCES = "General Audiences",

0 commit comments

Comments
 (0)