Typing is lost when a converter is specified in versions > 6.0.3
- 主要言語
- TypeScript
- スター
- 7.8k
- フォーク
- 2.2k
- 平均マージ
- 22時間 28分
- マージ済み PR(30日)
- 6
説明
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.
コントリビューションガイド
調査の方向性
Angular 18.2.0、Firebase 10.12.0、AngularFire 18.0.1 を使用するコンバーターでクエリを再現し、その後、withConverter が要求されたクラスではなく単純な JavaScript オブジェクトを返す理由を調査します。関連する rxfire issue 93 と動作を比較します。クエリ結果が変換後のクラスを保持すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, firebase, typescript
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100