2.0.5 • Published 4 months ago

@types/rdfjs__serializer-jsonld v2.0.5

Weekly downloads
9
License
MIT
Repository
github
Last release
4 months ago

Installation

npm install --save @types/rdfjs__serializer-jsonld

Summary

This package contains type definitions for @rdfjs/serializer-jsonld (https://github.com/rdfjs-base/serializer-jsonld).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__serializer-jsonld.

index.d.ts

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

import { EventEmitter } from 'events';
import { Sink, Stream, BaseQuad, Quad } from 'rdf-js';

declare namespace Serializer {
    interface SerializerOptions {
        encoding?: 'string' | 'object' | 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

  • Last updated: Thu, 08 Jul 2021 20:20:21 GMT
  • Dependencies: @types/rdf-js
  • Global values: none

Credits

These definitions were written by Chris Wilkinson.

2.0.5

4 months ago

2.0.3

7 months ago

2.0.2

7 months ago

2.0.4

6 months ago

2.0.1

8 months ago

2.0.0

1 year ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago