4.0.1 • Published 3 months ago

@types/rdfjs__serializer-jsonld-ext v4.0.1

Weekly downloads
24
License
MIT
Repository
github
Last release
3 months ago

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

// Type definitions for @rdfjs/serializer-jsonld-ext 2.0
// Project: https://github.com/rdfjs-base/serializer-jsonld-ext
// Definitions by: Chris Wilkinson <https://github.com/thewilkybarkid>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { EventEmitter } from 'events';
import { Context } from 'jsonld/jsonld-spec';
import { Sink, Stream, BaseQuad, Quad } 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.

4.0.1

3 months ago

4.0.0

4 months ago

2.0.10

4 months ago

2.0.7

7 months ago

2.0.6

8 months ago

2.0.9

6 months ago

2.0.8

7 months ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago