mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-22 08:45:13 +02:00
feat: Implemented jellyfin api
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
import type createClient from 'openapi-fetch';
|
||||
|
||||
export abstract class Api<Paths extends NonNullable<unknown>> {
|
||||
protected abstract baseUrl: string;
|
||||
protected abstract client: ReturnType<typeof createClient<Paths>>;
|
||||
protected abstract isLoggedIn: boolean;
|
||||
|
||||
getApi() {
|
||||
return this.client;
|
||||
}
|
||||
export interface Api<Paths extends NonNullable<unknown>> {
|
||||
getClient(): ReturnType<typeof createClient<Paths>>;
|
||||
}
|
||||
|
||||
// export abstract class Api<Paths extends NonNullable<unknown>> {
|
||||
// protected abstract baseUrl: string;
|
||||
// protected abstract client: ReturnType<typeof createClient<Paths>>;
|
||||
// protected abstract isLoggedIn: boolean;
|
||||
//
|
||||
// getApi() {
|
||||
// return this.client;
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user