@putdotio/api-client
Version:
JavaScript SDK for interacting with the put.io API.
15 lines (14 loc) • 714 B
TypeScript
import { PutioAPIClient } from '../client';
export default class Config {
private client;
constructor(client: PutioAPIClient);
Read<Config>(): Promise<import("..").IPutioAPIClientResponse<{
config: Config;
}>>;
Write<Config>(config: Config): Promise<import("..").IPutioAPIClientResponse<{}>>;
GetKey<Config, Key extends keyof Config>(key: Key): Promise<import("..").IPutioAPIClientResponse<{
value: Config[Key];
}>>;
SetKey<Config, Key extends keyof Config>(key: Key, value: Config[Key]): Promise<import("..").IPutioAPIClientResponse<{}>>;
DeleteKey<Config, Key extends keyof Config>(key: Key): Promise<import("..").IPutioAPIClientResponse<{}>>;
}