Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

348 B
Raw Blame
import type { LexicalNode, SerializedLexicalNode } from 'lexical';

export function $isSerializedNode(
  node: LexicalNode | SerializedLexicalNode
): node is SerializedLexicalNode {
  return (
    typeof node === 'object' &&
    'type' in node &&
    typeof node.type === 'string' &&
    (node.$ === undefined || typeof node.$ === 'object')
  );
}