Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
VS Code JavaScript Autocompletar con ESLint

Aquí está mi código y funciona como se esperaba.

 function Afunction(v) { this.v = v; } Afunction.prototype.vlog = function () { console.log(this.v); }; function extend(props) { for (const key in props) { const prop = props[key]; Afunction.prototype[key] = prop; } } extend({ someOther: function () { console.log("someOther"); }, someMore: function () { console.log("someMore"); } }); var obj = new Afunction(); obj.vlog(); obj.someOther(); obj.someMore();

y salida

 some value someOther someMore

Pero en mi código VS solo se muestra el vlog en la sugerencia de autocompletar. someOther y someOther no se muestran allí.

ingrese la descripción de la imagen aquí

Aprendo sobre la función extender en jQuery . Intento implementarlo en mi sabor. Pero me enfrento a este problema de autocompletar, hay tantas propiedades de función en mi objeto, por lo que si funciona, será genial. De lo contrario, tengo que escribir toda la función de propiedad Afunction.prototype.someOther como esta.

Veo que hay tantos archivos .ts en la carpeta ESLint si hay alguna forma de hacer un archivo de mapa/interfaz, así que una vez agrego todos los accesorios allí y me muestra una sugerencia.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!