Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
374 B
Raw Blame
/**
 * The name a row was sent under, as rowsOf reads the row back; undefined
 * for a value that is no row.
 *
 * @param row one of rowsOf's rows
 * @returns the name the row was sent under
 */
export function eventNameOf(row: unknown): unknown {
  const isRow = typeof row === 'object' && row !== null && 'event_name' in row

  return isRow ? row.event_name : undefined
}