UNPKG

@tanstack/router-core

Version:

Modern and scalable routing for React applications

11 lines (10 loc) 489 B
/** * @deprecated Use [`Response.json`](https://developer.mozilla.org/en-US/docs/Web/API/Response/json_static) from the standard Web API directly. */ export interface JsonResponse<TData> extends Response { json: () => Promise<TData>; } /** * @deprecated Use [`Response.json`](https://developer.mozilla.org/en-US/docs/Web/API/Response/json_static) from the standard Web API directly. */ export declare function json<TData>(payload: TData, init?: ResponseInit): JsonResponse<TData>;