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

Function isNodeSchema

packages/core/src/document/node/node.ts:759–764  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

757}
758
759export const isNodeSchema = (data: any): data is NodeSchema => {
760 if (!isObject(data)) {
761 return false
762 }
763 return 'componentName' in data && !data.isNode
764}
765
766/**
767 * get the top node of the same zLevel

Callers 3

importMethod · 0.90
constructorMethod · 0.90
insertChildFunction · 0.85

Calls 1

isObjectFunction · 0.90

Tested by

no test coverage detected