refactor(typing): add SingleChapterResult type for singular chapters fetched from the api
				
					
				
			This commit is contained in:
		
							parent
							
								
									14d9d12e5b
								
							
						
					
					
						commit
						23a7c4d222
					
				
							
								
								
									
										8
									
								
								lib/client/types/slightlyDifferentStory.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								lib/client/types/slightlyDifferentStory.ts
									
									
									
									
									
										Normal 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[]; | ||||||
|  | }; | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user