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

Change type info to be inheritance friendly. #1091

Merged
merged 2 commits into from May 3, 2022

Conversation

inlined
Copy link
Member

@inlined inlined commented May 2, 2022

Unwind the cleverness of CloudEvent<EventType, Extensions>. Types
now match the approved format of the Python API. CloudFunction now
templatizes the CloudEvent rather than the EventType so that we can
keep typing to include subtypes of events both in code complete and
in firebase-functions-test.

CC @TheIronDev since this affects firebase-functions-test

Unwind the cleverness of CloudEvent<EventType, Extensions>. Types
now match the approved format of the Python API. CloudFunction now
templatizes the CloudEvent rather than the EventType so that we can
keep typing to include subtypes of events both in code complete and
in firebase-functions-test.
@inlined inlined requested review from taeold and TheIronDev May 2, 2022 22:47
* part of the CloudEvents spec nor the payload that a Cloud Function
* actually receives.
*/
params?: Record<string, string>;
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: params should probably only be present in Cloud Function types that actually support params.

@TheIronDev
Copy link
Contributor

THANK YOU!!!

Copy link
Contributor

@taeold taeold left a comment

Choose a reason for hiding this comment

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

So clean.

@taeold taeold merged commit ea634a8 into master May 3, 2022
@inlined inlined deleted the inlined.cloudevent-interfaces branch May 3, 2022 17:22
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.

None yet

3 participants