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

Function actionMethod

packages/core/src/plugin/plugin-extend-mobx.ts:129–135  ·  view source on GitHub ↗
(method: (this: any, ...args: any[]) => any, name?: string)

Source from the content-addressed store, hash-verified

127 * 创建 action 方法
128 */
129const actionMethod = (method: (this: any, ...args: any[]) => any, name?: string) => {
130 return createMobxDescriptor<ActionConfig>({
131 type: MobxExtendType.ACTION,
132 method,
133 name,
134 })
135}
136
137/* ------------------------------- Handler ------------------------------- */
138/**

Callers

nothing calls this directly

Calls 1

createMobxDescriptorFunction · 0.85

Tested by

no test coverage detected