@streambird/streambird-js
Version:
15 lines (14 loc) • 557 B
TypeScript
export interface StreambirdFetchOptions {
apiHost?: string;
}
export declare class StreambirdFetch {
publicKey: string;
apiHost: string;
get: <T>(url: string, params?: Record<string, string>) => Promise<T>;
post: <T>(url: string, body?: unknown) => Promise<T>;
postSessionless: <T>(url: string, body?: unknown) => Promise<T>;
put: <T>(url: string, body?: unknown) => Promise<T>;
delete: <T>(url: string, body?: unknown) => Promise<T>;
private fetch;
constructor(publicKey: string, options: StreambirdFetchOptions);
}