feat: Add to sonarr dialog, reworked requests

This commit is contained in:
Aleksi Lassila
2024-05-20 00:27:55 +03:00
parent a95d91f90c
commit 2d652ae9ba
34 changed files with 1113 additions and 497 deletions

View File

@@ -4,6 +4,10 @@ export interface Api<Paths extends NonNullable<unknown>> {
getClient(): ReturnType<typeof createClient<Paths>>;
}
export interface ApiAsync<Paths extends NonNullable<unknown>> {
getClient(): Promise<ReturnType<typeof createClient<Paths>>>;
}
// export abstract class Api<Paths extends NonNullable<unknown>> {
// protected abstract baseUrl: string;
// protected abstract client: ReturnType<typeof createClient<Paths>>;