MCPcopy Create free account
hub / github.com/middleapi/orpc / stringifyJSON

Function stringifyJSON

packages/shared/src/json.ts:9–12  ·  view source on GitHub ↗
(value: T | { toJSON(): T })

Source from the content-addressed store, hash-verified

7}
8
9export function stringifyJSON<T>(value: T | { toJSON(): T }): undefined extends T ? undefined | string : string {
10 // eslint-disable-next-line ban/ban
11 return JSON.stringify(value)
12}

Callers 15

#serializeMethod · 0.90
encodeMethod · 0.90
#enqueueMethod · 0.90
pullFunction · 0.90
toFetchBodyFunction · 0.90
toNodeHttpBodyFunction · 0.90
publishMethod · 0.90
toBatchRequestFunction · 0.90
publishMethod · 0.90
insertEventMethod · 0.90
getEventsAfterMethod · 0.90
signDurableIteratorTokenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected