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
372 B
Raw Blame
import type { TelemetryLogEntry } from '../../types'

/**
 * A survey answered, as a plugin logs it: a number, a Choice and a
 * boolean.
 *
 * @returns the entry, fresh each call
 */
export const surveyAnswer = (): TelemetryLogEntry => ({
  event: 'survey_answered',
  props: {
    answer: 2,
    page: { value: 'ready', of: ['ready', 'later'] },
    seen: true,
  },
})