Skip to content

Commit 8fc396d

Browse files
authored
Export QueryStream (#712)
<!-- Describe your PR here. --> I'm creating Effect wrappers around Convex and ConvexHelpers, and while working on the stream helpers, I struggled a lot with TypeScript because I don't have access to the type of the internal `QueryStream` class. If it's ok to export it that would help me avoid having to do castings to `any` 😅. (If not, that's fine) <!-- The following applies to third-party contributors. Convex employees and contractors can delete or ignore. --> ---- By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
2 parents 4d7050c + 6b86b55 commit 8fc396d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/convex-helpers/server/stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ type GenericStreamItem = NonNullable<unknown>;
214214
/**
215215
* A "QueryStream" is an async iterable of query results, ordered by indexed fields.
216216
*/
217-
abstract class QueryStream<T extends GenericStreamItem>
217+
export abstract class QueryStream<T extends GenericStreamItem>
218218
implements GenericOrderedQuery<T>
219219
{
220220
// Methods that subclasses must implement so OrderedQuery can be implemented.

0 commit comments

Comments
 (0)