MCPcopy Create free account
hub / github.com/Effect-TS/effect / formatPropertyKey

Function formatPropertyKey

packages/effect/src/Formatter.ts:192–194  ·  view source on GitHub ↗
(name: PropertyKey)

Source from the content-addressed store, hash-verified

190 * @internal
191 */
192export function formatPropertyKey(name: PropertyKey): string {
193 return typeof name === "string" ? JSON.stringify(name) : String(name)
194}
195
196/**
197 * Formats an array of property keys as a bracket-notation path string.

Callers 8

getExpectedMethod · 0.90
encodeKeysFunction · 0.90
Schema.tsFile · 0.90
renderAnnotationsFunction · 0.90
onFunction · 0.90
recurFunction · 0.85
formatPathFunction · 0.85

Calls 1

StringInterface · 0.70

Tested by

no test coverage detected