UNPKG

c15t

Version:

<div align="center"> <img src="https://c15t.com/logo-icon.png" alt="c15t Logo" width="64" height="64" /> <h1>c15t</h1> <p>Transform privacy consent from a compliance checkbox into a fully observable system</p>

18 lines 675 B
import type { ResponseContext } from './types'; /** * Creates a response context object for success or error cases. * * @param isSuccess - Whether the response was successful * @param data - The response data * @param error - Error information if the request failed * @param response - The raw response object * @returns A response context object */ export declare function createResponseContext<T>(isSuccess: boolean, data?: T | null, error?: { message: string; status: number; code?: string; cause?: unknown; details?: Record<string, unknown> | null; } | null, response?: Response | null): ResponseContext<T>; //# sourceMappingURL=utils.d.ts.map