[IMP] im_livechat: typing on services
closes odoo/odoo#126411 Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
This commit is contained in:
@@ -14,8 +14,11 @@ export class LivechatButton extends Component {
|
||||
|
||||
setup() {
|
||||
this.store = useStore();
|
||||
/** @type {import('@mail/core/common/chat_window_service').ChatWindowService} */
|
||||
this.chatWindowService = useService("mail.chat_window");
|
||||
/** @type {import('@im_livechat/embed/core/livechat_service').LivechatService} */
|
||||
this.livechatService = useState(useService("im_livechat.livechat"));
|
||||
/** @type {import('@mail/core/common/thread_service').ThreadService} */
|
||||
this.threadService = useService("mail.thread");
|
||||
this.onClick = debounce(this.onClick.bind(this), 500, { leading: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user