-
Notifications
You must be signed in to change notification settings - Fork 390
feat(firestore): Exposed more types from the admin.firestore namespace #1080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
test/integration/firestore.spec.ts
Outdated
}) | ||
.then((snapshot: admin.firestore.DocumentSnapshot<City>) => { | ||
const city: City = snapshot.data()!; | ||
expect(city).to.deep.equal(expected); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, since you are using converters, you should be able to do an instanceof
check here. You would also have to change City
to a class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
test/integration/firestore.spec.ts
Outdated
expect(city).to.deep.equal(expected); | ||
return refWithConverter.delete(); | ||
}) | ||
.should.eventually.be.fulfilled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This last line is a no-op, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Thanks for adding these! I was lamenting the fact that we have to import types from |
firebase#1080) * feat(firestore): Exposed more types from the admin.firestore namespace * fix: Updated integration test
For some reason I still cannot find SnapshotOptions. I didnt see it in the commit either but I did see the others. I think it was missed. |
RELEASE NOTE: Exposed a series of new Firestore SDK types from the
admin.firestore
namespace. Newly exposed types includeGrpcStatus
,FirestoreDataConverter
,UpdateData
and more.RELEASE NOTE: Upgraded the Firestore SDK version to v4.5.0 and higher.
Resolves #1064
Resolves #1074