changed jsdoc type hint message to error