@types/clownface
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -33,4 +33,4 @@ // Type definitions for clownface 0.12 | ||
interface WithTerm { | ||
term: Term | Term[]; | ||
interface WithTerm<T extends Term = Term> { | ||
term: T | T[]; | ||
} | ||
@@ -107,5 +107,9 @@ | ||
declare function clownface<D extends DatasetCore>(options: clownface.ClownfaceInit<D> & clownface.WithTerm | clownface.ClownfaceInit<D> & clownface.WithValue): clownface.SafeClownface<D>; | ||
declare function clownface<D extends DatasetCore>(options: clownface.ClownfaceInit<D>): clownface.Clownface<D>; | ||
type ClownfaceInitWithNode<D extends DatasetCore, T extends Term> = | ||
clownface.ClownfaceInit<D> & clownface.WithTerm<T> | | ||
clownface.ClownfaceInit<D> & clownface.WithValue; | ||
declare function clownface<D extends DatasetCore, T extends Term = Term>(options: ClownfaceInitWithNode<D, T>): clownface.SafeClownface<D, T>; | ||
declare function clownface<D extends DatasetCore, T extends Term = Term>(options: clownface.ClownfaceInit<D, T>): clownface.Clownface<D, T>; | ||
export = clownface; |
@@ -18,3 +18,3 @@ import { BlankNode, DatasetCore, Literal, NamedNode, Quad_Graph, Term, Variable, DefaultGraph } from 'rdf-js'; | ||
declare class Clownface<D extends DatasetCore = DatasetCore, T extends Term = Term> implements ClownfaceContract<D, T> { | ||
constructor(options: ClownfaceInit & Partial<WithTerm> & Partial<WithValue>); | ||
constructor(options: ClownfaceInit & Partial<WithTerm<T>> & Partial<WithValue>); | ||
readonly term: T | undefined; | ||
@@ -21,0 +21,0 @@ readonly terms: T[]; |
{ | ||
"name": "@types/clownface", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "TypeScript definitions for clownface", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "1cf0bf995199feaf4246c2794f692a6d69e0f86990fbc64101957a36e0af38ce", | ||
"typesPublisherContentHash": "894f8c752e946f88e1a32fad21c37d09d629d84c906f015fdd22827b5066cc46", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 13 Jan 2020 17:33:50 GMT | ||
* Last updated: Wed, 15 Jan 2020 07:56:04 GMT | ||
* Dependencies: [@types/rdf-js](https://npmjs.com/package/@types/rdf-js) | ||
@@ -14,0 +14,0 @@ * Global values: none |
12559
145