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

Method setProps

packages/core/src/document/node/node.ts:443–449  ·  view source on GitHub ↗
(props?: PropsMap | Props | null)

Source from the content-addressed store, hash-verified

441 }
442
443 setProps(props?: PropsMap | Props | null) {
444 if (props instanceof Props) {
445 this.props = props
446 return
447 }
448 this.props.import(props)
449 }
450
451 internalSetParent(parent: Node | null, useMutator = false) {
452 if (this._parent === parent) {

Callers

nothing calls this directly

Calls 1

importMethod · 0.45

Tested by

no test coverage detected