MCPcopy Create free account
hub / github.com/arktypeio/arktype / defineEntry

Function defineEntry

ark/schema/shared/errorReaders.ts:89–95  ·  view source on GitHub ↗
(result: object, k: string, value: unknown)

Source from the content-addressed store, hash-verified

87
88// defined, since assigning a path "__proto__" would set the prototype
89const defineEntry = (result: object, k: string, value: unknown) =>
90 Object.defineProperty(result, k, {
91 value,
92 enumerable: true,
93 writable: true,
94 configurable: true
95 })

Callers 2

byPathFunction · 0.85
addEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected