@tanstack/router-core
Version:
Modern and scalable routing for React applications
1 lines • 721 B
Source Map (JSON)
{"version":3,"file":"json.cjs","names":[],"sources":["../../../src/ssr/json.ts"],"sourcesContent":["/**\n * @deprecated Use [`Response.json`](https://developer.mozilla.org/en-US/docs/Web/API/Response/json_static) from the standard Web API directly.\n */\nexport interface JsonResponse<TData> extends Response {\n json: () => Promise<TData>\n}\n\n/**\n * @deprecated Use [`Response.json`](https://developer.mozilla.org/en-US/docs/Web/API/Response/json_static) from the standard Web API directly.\n */\nexport function json<TData>(\n payload: TData,\n init?: ResponseInit,\n): JsonResponse<TData> {\n return Response.json(payload, init)\n}\n"],"mappings":";;;;AAUA,SAAgB,KACd,SACA,MACqB;AACrB,QAAO,SAAS,KAAK,SAAS,KAAK"}