@types/rdfjs__serializer-jsonld-ext
Advanced tools
Comparing version 2.0.10 to 4.0.0
@@ -5,20 +5,17 @@ import { BaseQuad, Quad, Sink, Stream } from "@rdfjs/types"; | ||
declare namespace Serializer { | ||
interface SerializerOptions { | ||
context?: Context | undefined; | ||
compact?: boolean | undefined; | ||
encoding?: "string" | "object" | undefined; | ||
flatten?: boolean | undefined; | ||
frame?: boolean | undefined; | ||
skipContext?: boolean | undefined; | ||
skipGraphProperty?: boolean | undefined; | ||
} | ||
export interface SerializerOptions { | ||
baseIRI?: string | undefined; | ||
context?: Context | undefined; | ||
compact?: boolean | undefined; | ||
encoding?: "string" | "object" | undefined; | ||
flatten?: boolean | undefined; | ||
frame?: boolean | undefined; | ||
skipContext?: boolean | undefined; | ||
prettyPrint?: boolean | undefined; | ||
} | ||
declare class Serializer<Q extends BaseQuad = Quad> implements Sink<Stream<Q>, EventEmitter> { | ||
constructor(options?: Serializer.SerializerOptions); | ||
export default class Serializer<Q extends BaseQuad = Quad> implements Sink<Stream<Q>, EventEmitter> { | ||
constructor(options?: SerializerOptions); | ||
import(stream: Stream<Q>, options?: Serializer.SerializerOptions): EventEmitter; | ||
import(stream: Stream<Q>, options?: SerializerOptions): EventEmitter; | ||
} | ||
export = Serializer; |
{ | ||
"name": "@types/rdfjs__serializer-jsonld-ext", | ||
"version": "2.0.10", | ||
"version": "4.0.0", | ||
"description": "TypeScript definitions for @rdfjs/serializer-jsonld-ext", | ||
@@ -14,2 +14,3 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__serializer-jsonld-ext", | ||
], | ||
"type": "module", | ||
"main": "", | ||
@@ -25,6 +26,7 @@ "types": "index.d.ts", | ||
"@types/jsonld": "*", | ||
"@types/node": "*", | ||
"@rdfjs/types": ">=1.0.0" | ||
}, | ||
"typesPublisherContentHash": "f5fd2c4074ff175cf6743c8572c52df8b4925ff6373674178519786c13db34b0", | ||
"typesPublisherContentHash": "f33f2d20f0417a4976f9af9d4b951be86ca4eab8a0c4d5802b1cbb580622c7e5", | ||
"typeScriptVersion": "4.6" | ||
} |
@@ -15,29 +15,26 @@ # Installation | ||
declare namespace Serializer { | ||
interface SerializerOptions { | ||
context?: Context | undefined; | ||
compact?: boolean | undefined; | ||
encoding?: "string" | "object" | undefined; | ||
flatten?: boolean | undefined; | ||
frame?: boolean | undefined; | ||
skipContext?: boolean | undefined; | ||
skipGraphProperty?: boolean | undefined; | ||
} | ||
export interface SerializerOptions { | ||
baseIRI?: string | undefined; | ||
context?: Context | undefined; | ||
compact?: boolean | undefined; | ||
encoding?: "string" | "object" | undefined; | ||
flatten?: boolean | undefined; | ||
frame?: boolean | undefined; | ||
skipContext?: boolean | undefined; | ||
prettyPrint?: boolean | undefined; | ||
} | ||
declare class Serializer<Q extends BaseQuad = Quad> implements Sink<Stream<Q>, EventEmitter> { | ||
constructor(options?: Serializer.SerializerOptions); | ||
export default class Serializer<Q extends BaseQuad = Quad> implements Sink<Stream<Q>, EventEmitter> { | ||
constructor(options?: SerializerOptions); | ||
import(stream: Stream<Q>, options?: Serializer.SerializerOptions): EventEmitter; | ||
import(stream: Stream<Q>, options?: SerializerOptions): EventEmitter; | ||
} | ||
export = Serializer; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 08 Jan 2024 20:35:39 GMT | ||
* Dependencies: [@rdfjs/types](https://npmjs.com/package/@rdfjs/types), [@types/jsonld](https://npmjs.com/package/@types/jsonld) | ||
* Last updated: Sat, 13 Jan 2024 07:35:29 GMT | ||
* Dependencies: [@rdfjs/types](https://npmjs.com/package/@rdfjs/types), [@types/jsonld](https://npmjs.com/package/@types/jsonld), [@types/node](https://npmjs.com/package/@types/node) | ||
# Credits | ||
These definitions were written by [Chris Wilkinson](https://github.com/thewilkybarkid). |
Yes
4424
3
17
40
+ Added@types/node@*