angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.7k stars 2.18k forks source link

Typing is lost when a converter is specified in versions > 6.0.3 #3563

Open hampusboas opened 2 months ago

hampusboas commented 2 months ago

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.

google-oss-bot commented 2 months ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.