fixed simkl types

This commit is contained in:
John O'Keefe 2024-08-09 15:12:10 -04:00
parent 1dcf7ba5bd
commit 77289052e9
2 changed files with 47 additions and 45 deletions

View File

@ -30,7 +30,7 @@ type SimklWatchList struct {
Anime []struct {
LastWatchedAt string `json:"last_watched_at" ts_type:"last_watched_at"`
Status string `json:"status" ts_type:"status"`
UserRating int `json:"user_rating" ts_type:"user_rating"`
UserRating float64 `json:"user_rating" ts_type:"user_rating"`
LastWatched string `json:"last_watched" ts_type:"last_watched"`
NextToWatch string `json:"next_to_watch" ts_type:"next_to_watch"`
WatchedEpisodesCount int `json:"watched_episodes_count" ts_type:"watched_episodes_count"`

View File

@ -19,7 +19,10 @@ export type SimklUser = {
}
export type SimklWatchList = {
anime: [{
anime: [SimklAnime]
}
export type SimklAnime = {
last_watched_at: string,
status: string
user_rating: number,
@ -55,5 +58,4 @@ export type SimklWatchList = {
}
},
anime_type: string
}]
}