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

147
Views
¿Por qué recibo el mensaje "No se puede encontrar el nombre de error 'nombre de la función'"?

Así que agregué esta función a continuación a mi clase ts:

 private get(iD: string): Promise <Function> => async () => { const tallConfig = await longCrudService.getHalf(iD); const stream: Stream = tallConfig.stream; const response = this.createUrl(tallConfig, stream); return response; }

Pero tan pronto como lo agrego, todas las demás funciones/métodos a continuación comienzan a arrojar este error: "No se puede encontrar el nombre 'nombre de la función'". ¿Lo agregué de manera incorrecta?. Todavía estoy tratando de conseguir una copia mecanografiada.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

private get = async (id: string): Promise<Function> => {

o

 private get: (iD: string) => Promise<Function> = async (iD: string) => {
about 4 years ago · Juan Pablo Isaza Report

0

Lo que en realidad estás declarando aquí es un método. La declaración de métodos con sintaxis de flecha es así:

 private methodName = (param: ParamType): TypeOfReturnable => { // remember to return something of type TypeOfReturnable }
about 4 years ago · Juan Pablo Isaza Report
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!