Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/rdf-js

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/rdf-js - npm Package Compare versions

Comparing version 2.0.10 to 2.0.11

51

rdf-js/index.d.ts

@@ -430,3 +430,3 @@ // Type definitions for the RDFJS specification 2.0

export interface DatasetCore<Q extends BaseQuad = Quad> {
export interface DatasetCore<OutQuad extends BaseQuad = Quad, InQuad extends BaseQuad = OutQuad> {
/**

@@ -442,3 +442,3 @@ * A non-negative integer that specifies the number of quads in the set.

*/
add(quad: Q): this;
add(quad: InQuad): this;

@@ -448,3 +448,3 @@ /**

*/
delete(quad: Q): this;
delete(quad: InQuad): this;

@@ -454,3 +454,3 @@ /**

*/
has(quad: Q): boolean;
has(quad: InQuad): boolean;

@@ -474,13 +474,13 @@ /**

[Symbol.iterator](): Iterator<Q>;
[Symbol.iterator](): Iterator<OutQuad>;
}
export interface DatasetCoreFactory<Q extends BaseQuad = Quad> {
export interface DatasetCoreFactory<OutQuad extends BaseQuad = Quad, InQuad extends BaseQuad = OutQuad, D extends DatasetCore<OutQuad, InQuad> = DatasetCore<OutQuad, InQuad>> {
/**
* Returns a new dataset and imports all quads, if given.
*/
dataset(quads?: Q[]): DatasetCore<Q>;
dataset(quads?: InQuad[]): D;
}
export interface Dataset<Q extends BaseQuad = Quad> extends DatasetCore<Q> {
export interface Dataset<OutQuad extends BaseQuad = Quad, InQuad extends BaseQuad = OutQuad> extends DatasetCore<OutQuad, InQuad> {
/**

@@ -492,3 +492,3 @@ * Imports the quads into this dataset.

*/
addAll(quads: Dataset<Q>|Q[]): this;
addAll(quads: Dataset<InQuad>|InQuad[]): this;

@@ -501,3 +501,3 @@ /**

*/
contains(other: Dataset<Q>): boolean;
contains(other: Dataset<InQuad>): boolean;

@@ -520,3 +520,3 @@ /**

*/
difference(other: Dataset<Q>): this;
difference(other: Dataset<InQuad>): this;

@@ -528,3 +528,3 @@ /**

*/
equals(other: Dataset<Q>): boolean;
equals(other: Dataset<InQuad>): boolean;

@@ -541,3 +541,3 @@ /**

*/
every(iteratee: QuadFilterIteratee<Q>['test']): boolean;
every(iteratee: QuadFilterIteratee<OutQuad>['test']): boolean;

@@ -549,3 +549,3 @@ /**

*/
filter(iteratee: QuadFilterIteratee<Q>['test']): this;
filter(iteratee: QuadFilterIteratee<OutQuad>['test']): this;

@@ -557,3 +557,3 @@ /**

*/
forEach(iteratee: QuadRunIteratee<Q>['run']): void;
forEach(iteratee: QuadRunIteratee<OutQuad>['run']): void;

@@ -565,3 +565,3 @@ /**

*/
import(stream: Stream<Q>): Promise<this>;
import(stream: Stream<InQuad>): Promise<this>;

@@ -571,3 +571,3 @@ /**

*/
intersection(other: Dataset<Q>): this;
intersection(other: Dataset<InQuad>): this;

@@ -577,3 +577,3 @@ /**

*/
map(iteratee: QuadMapIteratee<Q>['map']): this;
map(iteratee: QuadMapIteratee<OutQuad>['map']): this;

@@ -589,3 +589,3 @@ /**

*/
reduce<A = any>(iteratee: QuadReduceIteratee<A, Q>['run'], initialValue?: A): A;
reduce<A = any>(iteratee: QuadReduceIteratee<A, OutQuad>['run'], initialValue?: A): A;

@@ -600,3 +600,3 @@ /**

*/
some(iteratee: QuadFilterIteratee<Q>['test']): boolean;
some(iteratee: QuadFilterIteratee<OutQuad>['test']): boolean;

@@ -609,3 +609,3 @@ /**

*/
toArray(): Q[];
toArray(): OutQuad[];

@@ -621,3 +621,3 @@ /**

*/
toStream(): Stream<Q>;
toStream(): Stream<OutQuad>;

@@ -635,10 +635,11 @@ /**

*/
union(quads: Dataset<Q>): this;
union(quads: Dataset<InQuad>): this;
}
export interface DatasetFactory<Q extends BaseQuad = Quad> extends DatasetCoreFactory<Q> {
export interface DatasetFactory<OutQuad extends BaseQuad = Quad, InQuad extends BaseQuad = OutQuad, D extends Dataset<OutQuad, InQuad> = Dataset<OutQuad, InQuad>>
extends DatasetCoreFactory<OutQuad, InQuad, D> {
/**
* Returns a new dataset and imports all quads, if given.
*/
dataset(quads?: Dataset<Q>|Q[]): Dataset<Q>;
dataset(quads?: Dataset<InQuad>|InQuad[]): D;
}

@@ -645,0 +646,0 @@

{
"name": "@types/rdf-js",
"version": "2.0.10",
"version": "2.0.11",
"description": "TypeScript definitions for the RDFJS specification",

@@ -29,4 +29,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "8e3d1e0ba4b33fc68e98880e94330d6b3a74c506b29c73106df57eb94ab321ba",
"typesPublisherContentHash": "6dcd5e947a584286917de5cae0fd5a78540fb1a44d96f0229f57b28990083688",
"typeScriptVersion": "2.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sat, 25 Jan 2020 01:11:28 GMT
* Last updated: Mon, 27 Jan 2020 22:31:32 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc