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

Function own

ark/type/runtime.ts:281–282  ·  view source on GitHub ↗
(validator: t, attributes: object)

Source from the content-addressed store, hash-verified

279
280// as its own, where the class has only a getter
281export const own = <t extends object>(validator: t, attributes: object): t =>
282 Object.defineProperties(validator, getOwnPropertyDescriptors(attributes))
283
284// what a module reads of a validator it imports, which a build reading one
285// module at a time bakes there, as the validator's own module can't see it

Callers 2

bakeIntoFunction · 0.85
runtime.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected