Skip to content

Commit 090d2d3

Browse files
authored
Update stream.d.ts so Stream extends AsyncIterable<Quad>
it might be a good idea to have it extend from stream.Readable too, but this is less opinionated. (node Readable implements AsyncIterable<Q>)
1 parent 183bda7 commit 090d2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stream.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { BaseQuad, Quad, Term } from './data-model';
2020
* Optional events:
2121
* * prefix(prefix: string, iri: RDF.NamedNode): This event is emitted every time a prefix is mapped to some IRI.
2222
*/
23-
export interface Stream<Q extends BaseQuad = Quad> extends EventEmitter {
23+
export interface Stream<Q extends BaseQuad = Quad> extends EventEmitter, AsyncIterable<Q> {
2424
/**
2525
* This method pulls a quad out of the internal buffer and returns it.
2626
* If there is no quad available, then it will return null.

0 commit comments

Comments
 (0)