Skip to content
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

Tighten up types in firestore delete script #3201

Merged
merged 5 commits into from
Mar 17, 2021

Conversation

samtstern
Copy link
Contributor

Description

Fixes #3191

The use of any in that script meant that some error messages were getting swallowed.

Scenarios Tested

None, just a types cleanup.

Sample Commands

N/A

@google-cla google-cla bot added the cla: yes Manual indication that this has passed CLA. label Mar 10, 2021
.map((x) => {
return x.document;
});
const docs: Document[] = [];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is because the compiler couldn't infer the the guarantees on the .document field from the .filter

@samtstern samtstern requested a review from joehan March 10, 2021 12:46
Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/firestore/delete.ts Outdated Show resolved Hide resolved
@samtstern samtstern merged commit e41cac2 into master Mar 17, 2021
@bkendall bkendall deleted the ss-firestore-delete-types branch August 4, 2021 19:26
devpeerapong pushed a commit to devpeerapong/firebase-tools that referenced this pull request Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firebase Cloud Functions: Failed to delete documents
2 participants