• Empresas
    • Publicar empleo
    • Nuestro proceso
    • Evaluaciones
    • Contrata talento tech
    • Employer of Record
    • Comercial
    • Calculadora de salario
  • Candidatos
    • Empleos
    • Cursos y retos
  • Precios

0

101
Vistas
Visual Studio Code Javascript Intellisense not working on event object properties

I noticed when trying to call the .target property on the event parameter i'm passing thru, the intellisense doesn't recognize and give me options of the available properties or methods.

Is this normal functionality or is there a way to work around this?

https://i.stack.imgur.com/7rN04.png

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You should be able to make it work by using JSDoc type annotations:

/**
 * @param event {YourTypeHere}
 */
let sharePhoto = function (event) {
    // TODO: Write code
}

For example, if you type Event in between the brackets:

A Visual Studio Code screenshot showing that IntelliSense works after giving 'event' an 'Event' type annotation

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda