That is not an error but rather a warning. Just ignore it if you know the data types are correct. Monaco/VScode does its best with data typing but sometimes it just can't work it out.
BTW, there is a known issue in Monaco when trying to force in-line JSDoc style typing. Generally you need to wrap the variable or statement you want to type in ( ... ) in order for Monaco to know that it should actually be applied.