@types/rdfjs__dataset
Advanced tools
Comparing version 1.0.5 to 2.0.0
import * as RDF from 'rdf-js'; | ||
interface DatasetCore<InQuad extends RDF.BaseQuad = RDF.Quad> extends RDF.DatasetCore<RDF.Quad, InQuad> { | ||
match(subject?: RDF.Term | null, predicate?: RDF.Term | null, object?: RDF.Term | null, graph?: RDF.Term | null): DatasetCore<InQuad>; | ||
interface DatasetCore<Q extends RDF.BaseQuad = RDF.Quad> extends RDF.DatasetCore<Q> { | ||
} | ||
// tslint:disable-next-line no-unnecessary-class | ||
declare class DatasetCore<InQuad> { | ||
constructor(quads: InQuad[]); | ||
declare class DatasetCore<Q> { | ||
constructor(quads?: Q[]); | ||
} | ||
export = DatasetCore; | ||
export default DatasetCore; |
@@ -1,14 +0,12 @@ | ||
// Type definitions for @rdfjs/dataset 1.0 | ||
// Type definitions for @rdfjs/dataset 2.0 | ||
// Project: https://github.com/rdfjs-base/dataset | ||
// Definitions by: tpluscode <https://github.com/tpluscode> | ||
// Jesse Wright <https://github.com/jeswr> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
import { BaseQuad, DataFactory, DefaultGraph, Quad } from 'rdf-js'; | ||
import DatasetCore = require('./DatasetCore'); | ||
import Factory from './Factory'; | ||
declare const Dataset: { | ||
dataset<InQuad extends BaseQuad = Quad>(quads?: InQuad[]): DatasetCore<InQuad>; | ||
defaultGraphInstance: DefaultGraph; | ||
} & Required<DataFactory>; | ||
declare const factory: Factory; | ||
export = Dataset; | ||
export default factory; |
{ | ||
"name": "@types/rdfjs__dataset", | ||
"version": "1.0.5", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for @rdfjs/dataset", | ||
@@ -12,2 +12,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__dataset", | ||
"githubUsername": "tpluscode" | ||
}, | ||
{ | ||
"name": "Jesse Wright", | ||
"url": "https://github.com/jeswr", | ||
"githubUsername": "jeswr" | ||
} | ||
@@ -26,4 +31,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "6117f43aec98bcf0234409ef49ed70fbcee40996de410f63d0362d241dbbbc87", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "d12960d47f9486a3c941763c247cb1c3ee84e8b3d5a81397c515ee7c45f4f827", | ||
"typeScriptVersion": "3.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 03 Jun 2021 17:02:06 GMT | ||
* Last updated: Mon, 07 Feb 2022 09:31:33 GMT | ||
* Dependencies: [@types/rdf-js](https://npmjs.com/package/@types/rdf-js) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by [tpluscode](https://github.com/tpluscode). | ||
These definitions were written by [tpluscode](https://github.com/tpluscode), and [Jesse Wright](https://github.com/jeswr). |
3665
6
23