From 6b25326d51086c04413ef74a55e3d8243ec8af9d Mon Sep 17 00:00:00 2001 From: Laurens Rietveld Date: Tue, 16 Oct 2018 18:30:07 +0200 Subject: [PATCH] N3: Added missing option for writer (#29786) --- types/n3/index.d.ts | 1 + types/n3/n3-tests.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/n3/index.d.ts b/types/n3/index.d.ts index a9438616c2..31a2975bb0 100644 --- a/types/n3/index.d.ts +++ b/types/n3/index.d.ts @@ -140,6 +140,7 @@ export interface N3StreamParser extends RDF.Stream, NodeJS.WritableStream, RDF.S export interface WriterOptions { format?: string; prefixes?: Prefixes; + end?: boolean; } export interface WriterConstructor { diff --git a/types/n3/n3-tests.ts b/types/n3/n3-tests.ts index d24960a112..a061777ad7 100644 --- a/types/n3/n3-tests.ts +++ b/types/n3/n3-tests.ts @@ -113,7 +113,7 @@ function test_doc_from_triples_to_string() { } function test_doc_from_triples_to_rdf_stream() { - const writer: N3.N3Writer = new N3.Writer(process.stdout, { prefixes: { c: N3.DataFactory.namedNode('http://example.org/cartoons#') } }); + const writer: N3.N3Writer = new N3.Writer(process.stdout, { end: false, prefixes: { c: N3.DataFactory.namedNode('http://example.org/cartoons#') } }); writer.addQuad(N3.DataFactory.quad( N3.DataFactory.namedNode('http://example.org/cartoons#Tom'), N3.DataFactory.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'),