0.1.5 • Published 4 months ago

@types/rdfjs__serializer-rdfjs v0.1.5

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

Installation

npm install --save @types/rdfjs__serializer-rdfjs

Summary

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

Details

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

index.d.ts

// Type definitions for @rdfjs/serializer-rdfjs 0.0
// Project: https://github.com/rdfjs-base/serializer-rdfjs
// Definitions by: tpluscode <https://github.com/tpluscode>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

declare namespace Serializer {
    interface SerializerOptions {
        module?: 'esm' | 'ts' | string | 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;
    transform(quads: Iterable<Q>): string;
}

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 tpluscode.

0.1.5

4 months ago

0.1.0

10 months ago

0.1.2

7 months ago

0.1.1

8 months ago

0.1.4

6 months ago

0.1.3

7 months ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

4 years ago