MCPcopy Create free account
hub / github.com/Noumena-Network/code / isObject

Function isObject

src/remote/appServer/client.ts:86–88  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

84}
85
86function isObject(value: unknown): value is Record<string, unknown> {
87 return typeof value === 'object' && value !== null
88}
89
90function isJsonRpcResponse(value: unknown): value is JsonRpcResponse {
91 return isObject(value) && 'id' in value && 'result' in value

Callers 5

isJsonRpcResponseFunction · 0.85
isJsonRpcErrorFunction · 0.85
isJsonRpcRequestFunction · 0.85
isJsonRpcNotificationFunction · 0.85
normalizeContentFromAPIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected