From 23a7c4d22281ad6b2cd77bcf23234c46ddd25b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Fri, 1 Dec 2023 17:59:16 -0500 Subject: [PATCH] refactor(typing): add `SingleChapterResult` type for singular chapters fetched from the api --- lib/client/types/slightlyDifferentStory.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/client/types/slightlyDifferentStory.ts diff --git a/lib/client/types/slightlyDifferentStory.ts b/lib/client/types/slightlyDifferentStory.ts new file mode 100644 index 0000000..c1891d0 --- /dev/null +++ b/lib/client/types/slightlyDifferentStory.ts @@ -0,0 +1,8 @@ +import { type IStory } from "~/models/stories"; +import { IChapter } from "~/models/stories/chapter"; + +export type SingleChapterResult = Omit & { + currentChapter: IChapter & { text: string }; + totalChapters: number; + chapterNames: string[]; +};