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

4.0.1 • Public • Published

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.

index.d.ts

import { BaseQuad, Quad, Sink, Stream } from "@rdfjs/types";
import { EventEmitter } from "events";
import { Context } from "jsonld/jsonld-spec.js";

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;
}

export default class Serializer<Q extends BaseQuad = Quad> implements Sink<Stream<Q>, EventEmitter> {
    constructor(options?: SerializerOptions);

    import(stream: Stream<Q>, options?: SerializerOptions): EventEmitter;
}

Additional Details

Credits

These definitions were written by Chris Wilkinson.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rdfjs__serializer-jsonld-ext

Weekly Downloads

1,257

Version

4.0.1

License

MIT

Unpacked Size

4.43 kB

Total Files

5

Last publish

Collaborators

  • types