Files
sct-overseerr/server/types/plex-api.d.ts
sct 1be8b18361 feat(api): plex Sync (Movies)
Also adds winston logging
2020-09-27 14:05:32 +00:00

24 lines
542 B
TypeScript

declare module 'plex-api' {
export default class PlexAPI {
constructor(intiialOptions: {
hostname: string;
post: number;
token?: string;
authenticator: {
authenticate: (
_plexApi: PlexAPI,
cb: (err?: string, token?: string) => void
) => void;
};
options: {
identifier: string;
product: string;
deviceName: string;
platform: string;
};
});
query: <T extends Record<string, any>>(endpoint: string) => Promise<T>;
}
}