Skip to content

Commit

Permalink
refactor(caht): Add ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Jul 24, 2024
1 parent f9684e3 commit d4b674e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/devextreme/js/__internal/ui/chat/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class Chat extends Widget<Properties> {

switch (name) {
case 'title':
this._chatHeader?.option(name, (value as string));
// @ts-expect-error
this._chatHeader?.option(name, value);
break;
case 'items':
this._invalidate();
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme/js/__internal/ui/chat/chat_header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class ChatHeader extends DOMComponent<ChatHeaderProperties> {

switch (name) {
case 'title':
this._$text?.text((value as string));
// @ts-expect-error
this._$text?.text(value);
break;
default:
// @ts-expect-error
Expand Down

0 comments on commit d4b674e

Please sign in to comment.