Skip to content

Commit 31998c2

Browse files
committed
Revert changes to the functions-type package.
1 parent c6ef6a0 commit 31998c2

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

.changeset/bright-scissors-care.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
'@firebase/functions-types': minor
32
'@firebase/functions': minor
3+
'firebase': minor
44
---
55

66
Add `.stream()` api for callable functions for consuming streaming responses.

packages/functions-types/index.d.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,12 @@ export interface HttpsCallableResult {
2222
readonly data: any;
2323
}
2424

25-
/**
26-
* An HttpsCallableStreamResult wraps a single streaming result from a function call.
27-
*/
28-
export interface HttpsCallableStreamResult {
29-
readonly data: Promise<any>;
30-
readonly stream: AsyncIterable<any>;
31-
}
32-
3325
/**
3426
* An HttpsCallable is a reference to a "callable" http trigger in
3527
* Google Cloud Functions.
3628
*/
3729
export interface HttpsCallable {
3830
(data?: {} | null): Promise<HttpsCallableResult>;
39-
stream(data?: {} | null): Promise<HttpsCallableStreamResult>;
4031
}
4132

4233
/**

0 commit comments

Comments
 (0)