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

165
Views
La mejor manera de formatear teclas de nivel superior según la interfaz

cuál es la mejor manera de lograr lo siguiente:

 export interface Iabc { startDate: Date | string | null; endDate: Date | string | null; nestedSection: { a: string | null; b: boolean | null; c: boolean | null; d: Date | string | null; }; }

Actualmente estoy convirtiendo las fechas contenidas en las secciones anidadas así

 nestedSection: Object.entries(values.nestedSection).reduce((prev, [k, v]) => { if (v instanceof Date) { return { ...prev, [k]: moment(v).format('YYYY-MM-DD'), }; } return prev; }, values.nestedSection),

Sin embargo, necesito hacerlo para startDate y endDate un nivel superior a la sección anidada. AIT

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!