refactor(typing): add SingleChapterResult type for singular chapters fetched from the api

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2023-12-01 17:59:16 -05:00
parent 14d9d12e5b
commit 23a7c4d222
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -0,0 +1,8 @@
import { type IStory } from "~/models/stories";
import { IChapter } from "~/models/stories/chapter";
export type SingleChapterResult = Omit<IStory, "chapters"> & {
currentChapter: IChapter & { text: string };
totalChapters: number;
chapterNames: string[];
};