mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Generalize typing on pushQuad.
This commit is contained in:
parent
1d5144c293
commit
27a115022b
@ -1,4 +1,4 @@
|
|||||||
import type { Readable, PassThrough } from 'stream';
|
import type { Readable } from 'stream';
|
||||||
import arrayifyStream from 'arrayify-stream';
|
import arrayifyStream from 'arrayify-stream';
|
||||||
import type { ParserOptions } from 'n3';
|
import type { ParserOptions } from 'n3';
|
||||||
import { DataFactory, StreamParser, StreamWriter } 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.
|
* Generates a quad with the given subject/predicate/object and pushes it to the given array.
|
||||||
*/
|
*/
|
||||||
export function pushQuad(
|
export function pushQuad(
|
||||||
quads: Quad[] | PassThrough,
|
quads: Quad[] | Readable,
|
||||||
subject: string | NamedNode,
|
subject: string | NamedNode,
|
||||||
predicate: string | NamedNode,
|
predicate: string | NamedNode,
|
||||||
object: string | NamedNode | Literal,
|
object: string | NamedNode | Literal,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user