I have a function
function all(cssSelector){
return document.querySelectorAll(cssSelector);
}
If I call all('#id')
the IDE didn't seem to know that the string is CSS selector but if I call document.querySelectorAll
directly I can use autocomplete.
Is there any annotation that can fix this?