Skip to content

Commit a79aa76

Browse files
committed
fix type error
1 parent 40a3e2b commit a79aa76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/devextreme/js/__internal/grids/grid_core/ai_assistant

packages/devextreme/js/__internal/grids/grid_core/ai_assistant/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Message } from '@js/ui/chat';
33

44
import { hasAbortedCommands, hasCommandErrors } from '../ai_chat/utils';
55
import { AI_ASSISTANT_AUTHOR_ID, MessageStatus } from './const';
6-
import type { AIMessage, CommandResults } from './types';
6+
import type { AIMessage, CommandResult } from './types';
77

88
export const isAIMessage = (
99
message: Message,
@@ -21,7 +21,7 @@ export const isPopupOptions = (optionName: string, value: unknown): boolean => o
2121
export 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
}

0 commit comments

Comments
 (0)