2.1.7 • Published 1 year ago

@types/rdfjs__parser-jsonld v2.1.7

Weekly downloads
145
License
MIT
Repository
github
Last release
1 year 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.7

1 year ago

2.1.6

1 year ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.5

2 years ago

2.1.0

2 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago