Installation
npm install --save @types/rdfjs__serializer-jsonld-ext
Summary
This package contains type definitions for @rdfjs/serializer-jsonld-ext (https://github.com/rdfjs-base/serializer-jsonld-ext).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__serializer-jsonld-ext.
import { EventEmitter } from "events";
import { Context } from "jsonld/jsonld-spec";
import { BaseQuad, Quad, Sink, Stream } from "rdf-js";
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;
}
}
declare class Serializer<Q extends BaseQuad = Quad> implements Sink<Stream<Q>, EventEmitter> {
constructor(options?: Serializer.SerializerOptions);
import(stream: Stream<Q>, options?: Serializer.SerializerOptions): EventEmitter;
}
export = Serializer;
Additional Details
Credits
These definitions were written by Chris Wilkinson.