Installation
npm install --save @types/rdfjs__serializer-turtle
Summary
This package contains type definitions for @rdfjs/serializer-turtle (https://github.com/rdfjs-base/serializer-turtle).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__serializer-turtle.
import PrefixMap from "@rdfjs/prefix-map/PrefixMap.js";
import { BaseQuad, Quad, Sink, Stream } from "@rdfjs/types";
import { EventEmitter } from "events";
export interface SerializerOptions {
baseIRI?: string | undefined;
output?: string[] | undefined;
prefixes?: PrefixMap | undefined;
}
export default class Serializer<Q extends BaseQuad = Quad> implements Sink<Stream<Q>, EventEmitter> {
constructor(options?: SerializerOptions);
import(stream: Stream<Q>, options?: SerializerOptions): EventEmitter;
transform(quads: Iterable<Q>): string;
}
Additional Details
Credits
These definitions were written by Tomasz Pluskiewicz.