@types/rdfjs__parser-jsonld
TypeScript icon, indicating that this package has built-in type declarations

2.1.6 • Public • Published

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

import { BaseQuad, DataFactory, Quad, Sink, Stream } from "@rdfjs/types";
import { EventEmitter } from "events";
import { Context } from "jsonld/jsonld-spec.js";

export interface ParserOptions {
    baseIRI?: string | undefined;
    context?: Context | undefined;
    factory?: DataFactory | undefined;
}

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

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

Additional Details

Credits

These definitions were written by Chris Wilkinson, and tpluscode.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rdfjs__parser-jsonld

Weekly Downloads

4,186

Version

2.1.6

License

MIT

Unpacked Size

4.08 kB

Total Files

5

Last publish

Collaborators

  • types