File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ export class CallBuilder<
102
102
* @param {number } [options.reconnectTimeout] Custom stream connection timeout in ms, default is 15 seconds.
103
103
* @returns {Function } Close function. Run to close the connection and stop listening for new events.
104
104
*/
105
- public stream ( options : EventSourceOptions < T extends ServerApi . CollectionPage ? T [ "records" ] [ number ] : T > = { } ) : ( ) => void {
105
+ public stream ( options : EventSourceOptions <
106
+ T extends ServerApi . CollectionPage < infer U > ? U : T
107
+ > = { } ) : ( ) => void {
106
108
// Check if EventSource use is enabled
107
109
if ( EventSource === undefined ) {
108
110
throw new Error ( "Streaming requires eventsource to be enabled. If you need this functionality, compile with USE_EVENTSOURCE=true." ) ;
You can’t perform that action at this time.
0 commit comments