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

Function isRootNode

packages/designer/src/document/node/node.ts:1398–1400  ·  view source on GitHub ↗
(node: INode)

Source from the content-addressed store, hash-verified

1396export type INode = IPageNode | ISlotNode | IComponentNode | IRootNode;
1397
1398export function isRootNode(node: INode): node is IRootNode {
1399 return node && node.isRootNode;
1400}
1401
1402export function isLowCodeComponent(node: INode): node is IComponentNode {
1403 return node.componentMeta?.getMetadata().devMode === 'lowCode';

Callers 2

handleAcceptMethod · 0.90
node.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…