File tree Expand file tree Collapse file tree
packages/devextreme/js/__internal/grids/grid_core/ai_assistant Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { Message } from '@js/ui/chat';
33
44import { hasAbortedCommands , hasCommandErrors } from '../ai_chat/utils' ;
55import { AI_ASSISTANT_AUTHOR_ID , MessageStatus } from './const' ;
6- import type { AIMessage , CommandResults } from './types' ;
6+ import type { AIMessage , CommandResult } from './types' ;
77
88export const isAIMessage = (
99 message : Message ,
@@ -21,7 +21,7 @@ export const isPopupOptions = (optionName: string, value: unknown): boolean => o
2121export const isChatOptions = ( optionName : string , value : unknown ) : boolean => optionName . startsWith ( 'aiAssistant.chat' )
2222 || ( optionName === 'aiAssistant' && isObject ( value ) && 'chat' in value ) ;
2323
24- export const getMessageStatus = ( commands : CommandResults ) : MessageStatus => {
24+ export const getMessageStatus = ( commands : CommandResult [ ] ) : MessageStatus => {
2525 if ( hasCommandErrors ( commands ) || hasAbortedCommands ( commands ) ) {
2626 return MessageStatus . Failure ;
2727 }
You can’t perform that action at this time.
0 commit comments