You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(js)!: client streamFlow returns properties, not functions (#1690)
Reconciles the server & client SDK to return a promise and async iterable rather than a function that returns these types. Docs already suggested we did this.
Copy file name to clipboardExpand all lines: js/plugins/express/README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -80,10 +80,10 @@ const result = streamFlow({
80
80
url: `http://localhost:${port}/simpleFlow`,
81
81
input: 'say hello',
82
82
});
83
-
forawait (const chunk ofresult.stream()) {
83
+
forawait (const chunk ofresult.stream) {
84
84
console.log(chunk);
85
85
}
86
-
console.log(awaitresult.output());
86
+
console.log(awaitresult.output);
87
87
```
88
88
89
89
The sources for this package are in the main [Genkit](https://github.com/firebase/genkit) repo. Please file issues and pull requests against that repo.
0 commit comments