MCPcopy
hub / github.com/codeaashu/claude-code / getReceivedType

Function getReceivedType

src/utils/settings/validation.ts:85–90  ·  view source on GitHub ↗

* Get the type string for an unknown value (for error messages)

(value: unknown)

Source from the content-addressed store, hash-verified

83 * Get the type string for an unknown value (for error messages)
84 */
85function getReceivedType(value: unknown): string {
86 if (value === null) return 'null'
87 if (value === undefined) return 'undefined'
88 if (Array.isArray(value)) return 'array'
89 return typeof value
90}
91
92function extractReceivedFromMessage(msg: string): string | undefined {
93 const match = msg.match(/received (\w+)/)

Callers 1

formatZodErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected