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

174
Views
Unidad angular probando el almacenamiento local, Error ts(7053)

antes de Cada (() => { ...

 let store = {}; const mockSessionStorage = { getItem: (key: string): string => key in store ? store[key] : null, setItem: (key: string, value: string) => store[key] = `${value}`, removeItem: (key: string) => delete store[key], clear: () => store = {} }; ...

y obtengo el mensaje de error El elemento implícitamente tiene un tipo "cualquiera" porque la expresión de tipo "cadena" no se puede usar para el tipo de índice "{}". No se encontró ninguna firma de índice con un parámetro de tipo "cadena" para el tipo "{}".ts(7053)

Además, soy nuevo en mecanografía y no sé si es por el mensaje de error o si estoy haciendo algo mal. Me encantaría que alguien pudiera echarle un vistazo rápido.

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

0

Intenta escribir la variable de tu tienda .

Algo como esto:

 let store:{ [key: string]: string } = {};
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!