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
392 B
Raw Blame
import type { TelemetryMarkKind } from '../../../types'
import { MARK_KINDS } from '../mark-kinds'

/**
 * Whether the value names one of the three mark kinds.
 *
 * @param value what the caller passed as `kind`
 * @returns whether value names one of the three mark kinds
 */
export const isMarkKind = (value: unknown): value is TelemetryMarkKind =>
  MARK_KINDS.some(kind => kind === value)