UNPKG

@splunk/otel-web-session-recorder

Version:
19 lines (18 loc) 740 B
type RequestInit = Parameters<typeof fetch>[1]; export type ApiParams = RequestInit & { abortPreviousRequest: boolean; baseUrl?: string; discardExistingPath?: boolean; doNotConvert?: boolean; doNotRetryOnDocumentHidden?: boolean; logPayloadOnError?: boolean; retryCount?: number; retryInterval?: number; throwOnConvert?: boolean; waitForOnlineStatus?: boolean; }; export declare const apiFetch: <T>(pathName: string, { abortPreviousRequest, baseUrl, body, discardExistingPath, doNotConvert, doNotRetryOnDocumentHidden, headers, logPayloadOnError, retryCount, retryInterval, throwOnConvert, waitForOnlineStatus, ...params }: ApiParams) => Promise<{ data: T; response: Response; }>; export {};