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.

379 B
Raw Blame
import type { SplitContent, SplitContentType } from './layoutManager';

/** Build a bare content reference without loading the split registry. */
export function contentReference(
  type: SplitContentType,
  id: string
): SplitContent {
  // Split the union to stay within TypeScript's discriminant expansion limit.
  return type === 'component' ? { type, id } : { type, id };
}