From 196543f77fb752f742b3bc1898446aef27a0d943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Youn=20M=C3=A9lois?= Date: Sat, 9 Nov 2024 15:07:42 +0100 Subject: [PATCH] fix: enum implicit cast --- src/types/manga.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/types/manga.ts b/src/types/manga.ts index 3877f5b..06c849e 100644 --- a/src/types/manga.ts +++ b/src/types/manga.ts @@ -1,22 +1,22 @@ export enum Status { - Unknown, - Ongoing, - Completed, - Hiatus, - Cancelled, + Unknown = "Unknown", + Ongoing = "Ongoing", + Completed = "Completed", + Hiatus = "Hiatus", + Cancelled = "Cancelled", } export enum ContentRating { - Safe, - Suggestive, - Nsfw, + Safe = "Safe", + Suggestive = "Suggestive", + Nsfw = "Nsfw", } export enum ReadingMode { - RightToLeft, - LeftToRight, - Vertical, - Scroll, + RightToLeft = "RightToLeft", + LeftToRight = "LeftToRight", + Vertical = "Vertical", + Scroll = "Scroll", } export interface Manga {