2.1.6 • Published 4 months ago

@types/rdfjs__parser-jsonld v2.1.6

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

Installation

npm install --save @types/rdfjs__parser-jsonld

Summary

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

Details

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

index.d.ts

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

import { Context } from 'jsonld/jsonld-spec';
import { DataFactory, Sink, Stream, BaseQuad, Quad } from 'rdf-js';
import { EventEmitter } from 'events';

declare namespace Parser {
    interface ParserOptions {
        baseIRI?: string | undefined;
        context?: Context | undefined;
        factory?: DataFactory | undefined;
    }
}

declare class Parser<Q extends BaseQuad = Quad> implements Sink<EventEmitter, Stream<Q>> {
    constructor(options?: Parser.ParserOptions);

    import(stream: EventEmitter, options?: Parser.ParserOptions): Stream<Q>;
}

export = Parser;

Additional Details

Credits

These definitions were written by Chris Wilkinson.

2.1.6

4 months ago

2.1.2

8 months ago

2.1.1

10 months ago

2.1.4

7 months ago

2.1.3

7 months ago

2.1.5

6 months ago

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