The following code is running smoothly:-
$(".info).scrollTop(0);
However, the equivalent code below is encountering an error:-
let ele : HTMLElement = document.querySelector('.info');
ele.scrollTop(0); <---- Error
Error: - Error - PerfectScrollbar : Cannot invoke an expression whose type lacks a call signature. Type 'Number' has no compatible call signatures