Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

167
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda