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

Method import

packages/core/src/document/node/node.ts:143–148  ·  view source on GitHub ↗
(data: Schema, checkId = false)

Source from the content-addressed store, hash-verified

141 }
142
143 import(data: Schema, checkId = false) {
144 const { componentName, id, children, props, ...extras } = data
145
146 this.props.import(props, extras)
147 this._children?.import(children, checkId)
148 }
149
150 export<T = NodeSchema>(stage: TRANSFORM_STAGE = TRANSFORM_STAGE.SAVE): T {
151 const baseSchema: any = {

Callers 3

schemaMethod · 0.95
setPropsMethod · 0.45
setSchemaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected