MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isTextBlock

Function isTextBlock

src/components/MessageSelector.tsx:19–21  ·  view source on GitHub ↗
(block: ContentBlockParam)

Source from the content-addressed store, hash-verified

17import { type OptionWithDescription, Select } from './CustomSelect/select.js';
18import { Spinner } from './Spinner.js';
19function isTextBlock(block: ContentBlockParam): block is TextBlockParam {
20 return block.type === 'text';
21}
22import * as path from 'path';
23import { useTerminalSize } from 'src/hooks/useTerminalSize.js';
24import type { FileEditOutput } from 'src/tools/FileEditTool/types.js';

Callers 2

UserMessageOptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected