MCPcopy Create free account
hub / github.com/editablejs/editable / getProperties

Function getProperties

packages/yjs-transform/src/editable.ts:4–11  ·  view source on GitHub ↗
(
  node: TNode,
)

Source from the content-addressed store, hash-verified

2import { Text, Node } from '@editablejs/models'
3
4export function getProperties<TNode extends Node>(
5 node: TNode,
6): Omit<TNode, TNode extends Text ? 'text' : 'children'> {
7 return omit(node, (Text.isText(node) ? 'text' : 'children') as keyof TNode) as Omit<
8 TNode,
9 TNode extends Text ? 'text' : 'children'
10 >
11}

Callers 5

editorNodesToInsertDeltaFunction · 0.90
applyDeltaFunction · 0.90
insertTextFunction · 0.90
insertNodeFunction · 0.90
mergeNodeFunction · 0.90

Calls 1

omitFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…