@types/rdf-js
Advanced tools
Comparing version 3.0.3 to 4.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for the RDFJS specification 3.0 | ||
// Type definitions for the RDFJS specification 4.0 | ||
// Project: https://github.com/rdfjs/representation-task-force | ||
@@ -18,3 +18,3 @@ // Definitions by: Ruben Taelman <https://github.com/rubensworks> | ||
/** | ||
* Contains an Iri, RDF blank Node, RDF literal, variable name, or a default graph | ||
* Contains an Iri, RDF blank Node, RDF literal, variable name, default graph, or a quad | ||
* @see NamedNode | ||
@@ -25,4 +25,5 @@ * @see BlankNode | ||
* @see DefaultGraph | ||
* @see Quad | ||
*/ | ||
export type Term = NamedNode | BlankNode | Literal | Variable | DefaultGraph; | ||
export type Term = NamedNode | BlankNode | Literal | Variable | DefaultGraph | BaseQuad; | ||
@@ -150,3 +151,3 @@ /** | ||
*/ | ||
export type Quad_Subject = NamedNode | BlankNode | Variable; | ||
export type Quad_Subject = NamedNode | BlankNode | Quad | Variable; | ||
@@ -167,3 +168,3 @@ /** | ||
*/ | ||
export type Quad_Object = NamedNode | Literal | BlankNode | Variable; | ||
export type Quad_Object = NamedNode | Literal | BlankNode | Quad | Variable; | ||
@@ -184,2 +185,11 @@ /** | ||
/** | ||
* Contains the constant "Quad". | ||
*/ | ||
termType: "Quad"; | ||
/** | ||
* Contains an empty string as constant value. | ||
*/ | ||
value: ""; | ||
/** | ||
* The subject. | ||
@@ -209,3 +219,3 @@ * @see Quad_Subject | ||
*/ | ||
equals(other: BaseQuad | null | undefined): boolean; | ||
equals(other: Term | null | undefined): boolean; | ||
} | ||
@@ -242,3 +252,3 @@ | ||
*/ | ||
equals(other: BaseQuad | null | undefined): boolean; | ||
equals(other: Term | null | undefined): boolean; | ||
} | ||
@@ -255,6 +265,3 @@ | ||
*/ | ||
// TODO: This could be changed into a Generic method that returns a NamedNode constained to the | ||
// given `value` - but note that that would be a breaking change. See commit | ||
// 16d29e86cd6fe34e6ac6f53bba6ba1a1988d7401. | ||
namedNode(value: string): NamedNode; | ||
namedNode<Iri extends string = string>(value: Iri): NamedNode<Iri>; | ||
@@ -261,0 +268,0 @@ /** |
{ | ||
"name": "@types/rdf-js", | ||
"version": "3.0.3", | ||
"version": "4.0.0", | ||
"description": "TypeScript definitions for the RDFJS specification", | ||
@@ -34,4 +34,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "d78edf92d677a9fe3c138b87ef92cad466d34e92d8e3c1a0db3ac08f04134d6c", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "93c08c03376d86bf29438697ca9ec0a9d165e35b899e34fd7e02d8b757643a77", | ||
"typeScriptVersion": "3.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 10 Jul 2020 14:16:16 GMT | ||
* Last updated: Thu, 27 Aug 2020 06:27:36 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
582
24428