You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
621 B
26 lines
621 B
declare module 'plex-api' {
|
|
export default class PlexAPI {
|
|
constructor(intiialOptions: {
|
|
hostname: string;
|
|
port: number;
|
|
token?: string;
|
|
https?: boolean;
|
|
authenticator: {
|
|
authenticate: (
|
|
_plexApi: PlexAPI,
|
|
cb: (err?: string, token?: string) => void
|
|
) => void;
|
|
};
|
|
options: {
|
|
identifier: string;
|
|
product: string;
|
|
deviceName: string;
|
|
platform: string;
|
|
};
|
|
requestOptions?: Record<string, string | number>;
|
|
});
|
|
|
|
query: <T extends Record<string, any>>(endpoint: string) => Promise<T>;
|
|
}
|
|
}
|