spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / mods / telemetry / hooks / entries / is-mark-kind / is-mark-kind.ts
11 lines · 392 BRaw
1import type { TelemetryMarkKind } from '../../../types'
2import { MARK_KINDS } from '../mark-kinds'
3
4/**
5 * Whether the value names one of the three mark kinds.
6 *
7 * @param value what the caller passed as `kind`
8 * @returns whether value names one of the three mark kinds
9 */
10export const isMarkKind = (value: unknown): value is TelemetryMarkKind =>
11 MARK_KINDS.some(kind => kind === value)