MCPcopy
hub / github.com/mobxjs/mobx / addHiddenProp

Function addHiddenProp

packages/mobx/src/utils/utils.ts:114–121  ·  view source on GitHub ↗
(object: any, propName: PropertyKey, value: any)

Source from the content-addressed store, hash-verified

112}
113
114export function addHiddenProp(object: any, propName: PropertyKey, value: any) {
115 defineProperty(object, propName, {
116 enumerable: false,
117 writable: true,
118 configurable: true,
119 value
120 })
121}
122
123export function addHiddenFinalProp(object: any, propName: PropertyKey, value: any) {
124 defineProperty(object, propName, {

Callers 5

asObservableObjectFunction · 0.85
storeAnnotationFunction · 0.85
collectStoredAnnotationsFunction · 0.85
makeAutoObservableFunction · 0.85

Calls 1

definePropertyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…