MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / target

Method target

packages/shell/src/model/active-tracker.ts:15–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 }
14
15 get target() {
16 const _target = this[activeTrackerSymbol]._target;
17
18 if (!_target) {
19 return null;
20 }
21
22 const { node: innerNode, detail, instance } = _target;
23 const publicNode = ShellNode.create(innerNode);
24 return {
25 node: publicNode!,
26 detail,
27 instance,
28 };
29 }
30
31 onChange(fn: (target: IPublicTypeActiveTarget) => void): () => void {
32 if (!fn) {

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected