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

ref(google-cloud-serverless/v9): Update event functions to avoid any #14476

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mydea
Copy link
Member

@mydea mydea commented Nov 26, 2024

This refactors google-cloud-serverless to avoid some any in types. Since these are kind-of public, although this is extremely unlikely to affect anybody (because we mostly replace any with unknown which should also accept anything, basically), we'll still only merge this for v9.

Extracted out of #14463

@mydea mydea added this to the 9.0.0 milestone Nov 26, 2024
@mydea mydea self-assigned this Nov 26, 2024
Copy link
Member

Choose a reason for hiding this comment

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

I gotta admit my concern with the function signature change wasn't the change from any to unknown for data but the change in the return value form any to void. However, TIL that TS doesn't complain about actually returning a value in a void return typed function. So technically we still should merge this only in v9 I guess. Anyway, thanks for extracting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants