From 090d2d39691402510792aeee2347e21e72ede9b5 Mon Sep 17 00:00:00 2001 From: Benjamin Goering <171782+gobengo@users.noreply.github.com> Date: Mon, 25 Dec 2023 20:54:58 -0600 Subject: [PATCH] Update stream.d.ts so Stream extends AsyncIterable it might be a good idea to have it extend from stream.Readable too, but this is less opinionated. (node Readable implements AsyncIterable) --- stream.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.d.ts b/stream.d.ts index 2217114..4e96ebd 100644 --- a/stream.d.ts +++ b/stream.d.ts @@ -20,7 +20,7 @@ import { BaseQuad, Quad, Term } from './data-model'; * Optional events: * * prefix(prefix: string, iri: RDF.NamedNode): This event is emitted every time a prefix is mapped to some IRI. */ -export interface Stream extends EventEmitter { +export interface Stream extends EventEmitter, AsyncIterable { /** * This method pulls a quad out of the internal buffer and returns it. * If there is no quad available, then it will return null.