mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Added check whether N3 datafactory can be passed as option where Rdf DataFactory is expected
This commit is contained in:
@@ -76,7 +76,7 @@ function test_doc_rdf_to_triples_2() {
|
||||
}
|
||||
|
||||
function test_doc_rdf_stream_to_triples_1() {
|
||||
const parser: N3.N3Parser = new N3.Parser();
|
||||
const parser: N3.N3Parser = new N3.Parser({factory: N3.DataFactory});
|
||||
parser.parse('abc', console.log);
|
||||
|
||||
const streamParser: N3.N3StreamParser = N3.StreamParser();
|
||||
|
||||
Reference in New Issue
Block a user