MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / computedProperty

Function computedProperty

packages/core/src/plugin/plugin-extend-mobx.ts:104–109  ·  view source on GitHub ↗
(config: Omit<ComputedConfig<T>, 'type'>)

Source from the content-addressed store, hash-verified

102 * 创建 computed 属性
103 */
104const computedProperty = <T = any>(config: Omit<ComputedConfig<T>, 'type'>) => {
105 return createMobxDescriptor<ComputedConfig<T>>({
106 type: MobxExtendType.COMPUTED,
107 ...config,
108 })
109}
110
111/**
112 * 创建简单的 computed getter

Callers 2

computedGetterFunction · 0.85
computedGetterSetterFunction · 0.85

Calls 1

createMobxDescriptorFunction · 0.85

Tested by

no test coverage detected