MCPcopy Create free account
hub / github.com/YGYOOO/WorldX / patchJSON

Function patchJSON

client/src/ui/services/api-client.ts:54–60  ·  view source on GitHub ↗
(path: string, body?: unknown)

Source from the content-addressed store, hash-verified

52}
53
54function patchJSON<T>(path: string, body?: unknown): Promise<T> {
55 return requestJSON(path, {
56 method: "PATCH",
57 headers: { "Content-Type": "application/json" },
58 body: body === undefined ? undefined : JSON.stringify(body),
59 });
60}
61
62export interface WorldInfo {
63 worldName: string;

Callers 2

patchCharacterProfileFunction · 0.85

Calls 1

requestJSONFunction · 0.85

Tested by

no test coverage detected