Typing is lost when a converter is specified in versions > 6.0.3
- Lingua principale
- TypeScript
- Stelle
- 7.8k
- Fork
- 2.2k
- Merge medio
- 22h 28m
- PR unite (30g)
- 6
Descrizione
Hi,
When i upgrade to the latest version WithConverter returns a plain Javascript Object instead of the requested class.
This seems to be a bug in rxfire. Se this issue as well: https://github.com/FirebaseExtended/rxfire/issues/93
### Version info
**Angular:** ^18.2.0
**Firebase:** ^10.12.0
**AngularFire:** ^18.0.1
### How to reproduce these conditions
**Steps to set up and reproduce**
Create a class, run a query with a converter, debug the output of the query.
### Expected behavior
A query with the withConverter operator should return the class not a plain javascript object.
### Actual behavior
It returns a plain javascript object.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci la query con un converter usando Angular 18.2.0, Firebase 10.12.0 e AngularFire 18.0.1, quindi verifica perché withConverter restituisce un semplice oggetto JavaScript invece della classe richiesta. Confronta il comportamento con il relativo issue 93 di rxfire. Il lavoro è completato quando il risultato della query conserva la classe convertita.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, firebase, typescript
- Ambito
- databases
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100