From 27a115022bd8f5a3e45d78f7dd262ef9929ba365 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Fri, 8 Jan 2021 23:19:29 +0100 Subject: [PATCH] fix: Generalize typing on pushQuad. --- src/util/QuadUtil.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/QuadUtil.ts b/src/util/QuadUtil.ts index 3ae742669..f432d82ff 100644 --- a/src/util/QuadUtil.ts +++ b/src/util/QuadUtil.ts @@ -1,4 +1,4 @@ -import type { Readable, PassThrough } from 'stream'; +import type { Readable } from 'stream'; import arrayifyStream from 'arrayify-stream'; import type { ParserOptions } from 'n3'; import { DataFactory, StreamParser, StreamWriter } from 'n3'; @@ -12,7 +12,7 @@ import { toSubjectTerm, toPredicateTerm, toObjectTerm } from './TermUtil'; * Generates a quad with the given subject/predicate/object and pushes it to the given array. */ export function pushQuad( - quads: Quad[] | PassThrough, + quads: Quad[] | Readable, subject: string | NamedNode, predicate: string | NamedNode, object: string | NamedNode | Literal,