Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

173
Vistas
How can I set IDE to highlight code lines where I should write 'super' and 'await' on JS?

The thing is I sometimes forget to write the keywords and VS Code and TypeScript are not willing to notify me that I cannot call an inherited method in class without 'super' and in some cases I should use 'await' with asynchronous function. Please, help me reduce the amount of the errors with your advice.

An example with 'super':

class Child{
    printHey(){console.log('Hey')}
}

class Parent extends Child{
    printHey(){
        this.printHey() // the super required
    }
}

new Parent().printHey()

An example with 'await':

class Echo {
    async getEcho(echo: any){
        return echo
    }

    async printEcho(){
        var echo = 'Hey'
        var message:any = this.getEcho(echo)
        while(message !== echo) 'pass' // The loop got stuck
        console.log(`Echo ${message}`)
    }
}

new Echo().printEcho()
about 4 years ago · Juan Pablo Isaza
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 Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda