@types/rdfjs__serializer-turtle
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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.

index.d.ts

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rdfjs__serializer-turtle

Weekly Downloads

1,709

Version

1.1.0

License

MIT

Unpacked Size

4.14 kB

Total Files

5

Last publish

Collaborators

  • types