123ishaTest / 123ishaTest/igt-library

Add error handling to LocalStorage.ts

Aperta Adatta ai principianti
#19 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
18
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

As per the TODO in LocalStorage.ts:
```
// TODO(@Isha) add error handling here
public static get(key: string, saveEncoder: IgtSaveEncoder): Record {
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Look at LocalStorage.ts, find the get method with the TODO. Understand the IgtSaveEncoder interface and how errors might occur (e.g., parsing JSON, missing keys). Add try-catch blocks and decide on fallback behavior. Check if there are existing tests for LocalStorage to ensure changes don't break functionality.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
backend-api-design
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
70/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.