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

183
Views
¿Qué export const { x: y} = z; ¿hacer?

Estoy realmente confundido por la siguiente declaración en un index.ts:

 import z from 'path/to/z'; export const { x: y } = z;

¿Qué exporta realmente la segunda línea y cómo se correlaciona el valor de z con ella? Además, ¿para qué sirve este tipo de exportación?

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

0

Esta es una declaración de export con un patrón de desestructuración const . y es la variable que se declara, que se inicializa con la propiedad x de z .

Podría (y tal vez debería) escribirse como el equivalente

 export const y = zx;
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!