Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/freeCodeCamp/freeCodeCamp
/ combineDataWithResponse
Function
combineDataWithResponse
client/src/utils/ajax.ts:54–57 ·
view source on GitHub ↗
(response: Response)
Source
from the content-addressed store, hash-verified
52
}
53
54
async
function
combineDataWithResponse<T>(response: Response) {
55
const
data = (
await
response.json()) as T;
56
return
{ response, data };
57
}
58
59
export
function
post<T = void>(
60
path: string,
Callers
2
get
Function · 0.85
request
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected