@types/rdfjs__parser-jsonld
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -5,2 +5,6 @@ import { BaseQuad, DataFactory, Quad, Sink, Stream } from "@rdfjs/types"; | ||
export interface DocumentLoader { | ||
load(url: string): Promise<unknown>; | ||
} | ||
export interface ParserOptions { | ||
@@ -10,2 +14,3 @@ baseIRI?: string | undefined; | ||
factory?: DataFactory | undefined; | ||
documentLoader?: DocumentLoader | undefined; | ||
} | ||
@@ -12,0 +17,0 @@ |
{ | ||
"name": "@types/rdfjs__parser-jsonld", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "TypeScript definitions for @rdfjs/parser-jsonld", | ||
@@ -32,4 +32,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__parser-jsonld", | ||
}, | ||
"typesPublisherContentHash": "c1418e8146217bb8c309350d36ba42105bc9522f3ddca25f01878c34998800db", | ||
"typeScriptVersion": "4.6" | ||
"typesPublisherContentHash": "b6615322f4278065ee0236047779498fd4122cf9971f08255a471408f3b8171f", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -9,24 +9,5 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__parser-jsonld. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__parser-jsonld/index.d.ts) | ||
````ts | ||
import { BaseQuad, DataFactory, Quad, Sink, Stream } from "@rdfjs/types"; | ||
import { EventEmitter } from "events"; | ||
import { Context } from "jsonld/jsonld-spec.js"; | ||
export interface ParserOptions { | ||
baseIRI?: string | undefined; | ||
context?: Context | undefined; | ||
factory?: DataFactory | undefined; | ||
} | ||
export default class Parser<Q extends BaseQuad = Quad> implements Sink<EventEmitter, Stream<Q>> { | ||
constructor(options?: ParserOptions); | ||
import(stream: EventEmitter, options?: ParserOptions): Stream<Q>; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 08 Jan 2024 20:35:39 GMT | ||
* Last updated: Tue, 14 May 2024 18:36:09 GMT | ||
* Dependencies: [@rdfjs/types](https://npmjs.com/package/@rdfjs/types), [@types/jsonld](https://npmjs.com/package/@types/jsonld) | ||
@@ -33,0 +14,0 @@ |
5
20
3707
16