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

Function canonicalPropertyKey

packages/effect/src/Schema.ts:3635–3636  ·  view source on GitHub ↗
(key: PropertyKey)

Source from the content-addressed store, hash-verified

3633{}
3634
3635const canonicalPropertyKey = (key: PropertyKey): string | symbol =>
3636 typeof key === "symbol" ? key : globalThis.String(key)
3637
3638/**
3639 * Renames struct keys in the encoded form without changing the decoded type.

Callers 1

encodeKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected