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

httpsCallable type cleanup #34

Merged
merged 1 commit into from Sep 14, 2021
Merged

httpsCallable type cleanup #34

merged 1 commit into from Sep 14, 2021

Conversation

jhuleatt
Copy link
Contributor

@jhuleatt jhuleatt commented Sep 10, 2021

Update RxFire's httpsCallable to align with the JS SDK's httpsCallable.

  • Update generics names to match the JS SDK's httpsCallable (RequestData and ResponseData)
  • Default RequestData and ResponseData to unknown, just like the JS SDK's httpsCallable
  • Make data optional so it matches HttpsCallable
  • Pass generics through to vanillaHttpsCallable so we don't need to as the result

@google-cla google-cla bot added the cla: yes label Sep 10, 2021
@jhuleatt jhuleatt marked this pull request as ready for review September 10, 2021 13:36
@@ -24,13 +24,13 @@ import { map } from 'rxjs/operators';
type Functions = import('firebase/functions').Functions;
type HttpsCallableOptions = import('firebase/functions').HttpsCallableOptions;

export function httpsCallable<T, R>(
export function httpsCallable<RequestData = unknown, ResponseData = unknown>(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is unknown-ing these necessary?

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

Successfully merging this pull request may close these issues.

None yet

2 participants