So Im trying to use this SDK in typescript... and i find it very difficult to make this library cooperate with type checking because I don't have the actual types for most of the api responses...
example:
there's no real convenient way to check if I got an anime or not, or to at least make it type safe. if you were to export the types (such as the interface Anime in this scenario), doing something like
import { Anime } from '@mattplays/aniapi'
const res = await API.Anime.Random(10);
const data = res.data as Anime
Doing this could go a long way in making production level projects easier. Thanks!
So Im trying to use this SDK in typescript... and i find it very difficult to make this library cooperate with type checking because I don't have the actual types for most of the api responses... example: there's no real convenient way to check if I got an anime or not, or to at least make it type safe. if you were to export the types (such as the interface
Anime
in this scenario), doing something likeDoing this could go a long way in making production level projects easier. Thanks!