bunactyl
Version:
TypeScript SDK for Pterodactyl
20 lines • 736 B
TypeScript
export interface BunactylClientOptions {
url: string | undefined;
apiKey: string | undefined;
userAgent?: string;
}
export interface RequestOptions extends RequestInit {
params?: Record<string, string | number | boolean>;
}
export declare class BunactylClient {
private baseUrl;
private headers;
constructor(options: BunactylClientOptions);
private buildUrl;
private request;
get<T>(path: string, options?: RequestOptions): Promise<T>;
post<T>(path: string, data?: any, options?: RequestOptions): Promise<T>;
patch<T>(path: string, data?: any, options?: RequestOptions): Promise<T>;
delete<T>(path: string, options?: RequestOptions): Promise<T>;
}
//# sourceMappingURL=client.d.ts.map