MCPcopy
hub / github.com/codeaashu/claude-code / isSummarizeOption

Function isSummarizeOption

src/components/MessageSelector.tsx:32–34  ·  view source on GitHub ↗
(option: RestoreOption | null)

Source from the content-addressed store, hash-verified

30import { Divider } from './design-system/Divider.js';
31type RestoreOption = 'both' | 'conversation' | 'code' | 'summarize' | 'summarize_up_to' | 'nevermind';
32function isSummarizeOption(option: RestoreOption | null): option is 'summarize' | 'summarize_up_to' {
33 return option === 'summarize' || option === 'summarize_up_to';
34}
35type Props = {
36 messages: Message[];
37 onPreRestore: () => void;

Callers 3

onSelectRestoreOptionFunction · 0.85
MessageSelectorFunction · 0.85
RestoreOptionDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected