@types/rdf-ext
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -1,39 +0,3 @@ | ||
import { Term, Literal, DatasetCore } from '@rdfjs/types'; | ||
import { ClownfaceInit, ClownfaceInitWithTerms, ClownfaceInitWithValue, ClownfaceInitWithValues, AnyContext, AnyPointer } from "clownface"; | ||
import { default as ClownfaceFactory } from "clownface/Factory.js"; | ||
type ExtractDataset<This> = This extends DatasetFactory ? ReturnType<This["dataset"]> : never; | ||
interface DatasetFactory { | ||
dataset(): DatasetCore; | ||
} | ||
export interface ClownfaceFactory { | ||
clownface<D extends DatasetCore = ExtractDataset<this>>( | ||
options?: ClownfaceInit<D> | ||
): AnyPointer<AnyContext, D>; | ||
clownface<T extends Term | Term[], D extends DatasetCore = ExtractDataset<this>>( | ||
options: ClownfaceInitWithTerms<T, D> | ||
): AnyPointer<T, D>; | ||
clownface<D extends DatasetCore = ExtractDataset<this>>( | ||
options: ClownfaceInitWithValue<D> | ||
): AnyPointer<Literal, D>; | ||
clownface<D extends DatasetCore = ExtractDataset<this>>( | ||
options: ClownfaceInitWithValues<D> | ||
): AnyPointer<Literal[], D>; | ||
clownface<T extends AnyContext, D extends DatasetCore = ExtractDataset<this>>( | ||
other: AnyPointer<T, D>, | ||
): AnyPointer<T, D>; | ||
} | ||
interface ClownfaceFactoryCtor { | ||
new (): ClownfaceFactory; | ||
exports: ['clownface']; | ||
} | ||
declare const clownfaceFactory: ClownfaceFactoryCtor; | ||
export default clownfaceFactory; | ||
export default ClownfaceFactory; |
@@ -17,3 +17,3 @@ // Type definitions for rdf-ext 2.2 | ||
import { ScoreFactory } from "@rdfjs/score/Factory.js"; | ||
import { ClownfaceFactory } from './ClownfaceFactory.js'; | ||
import ClownfaceFactory from './ClownfaceFactory.js'; | ||
import { DataFactoryExt as DataFactory } from './DataFactory.js'; | ||
@@ -20,0 +20,0 @@ import { DatasetFactory } from './DatasetFactory.js'; |
{ | ||
"name": "@types/rdf-ext", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "TypeScript definitions for rdf-ext", | ||
@@ -41,5 +41,5 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdf-ext", | ||
}, | ||
"typesPublisherContentHash": "a51bb75fcc2a38cc78e81d6d30750340c562ce4ec2144f16f6461ac11fdce331", | ||
"typesPublisherContentHash": "9ea64f64dda07219b485ce58c9386f7a410b0b17760786f1bf4f7c52bdf36ac7", | ||
"typeScriptVersion": "4.3", | ||
"type": "module" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 07 Jul 2023 01:02:53 GMT | ||
* Last updated: Tue, 25 Jul 2023 07:32:55 GMT | ||
* Dependencies: [@types/clownface](https://npmjs.com/package/@types/clownface), [@types/rdfjs__data-model](https://npmjs.com/package/@types/rdfjs__data-model), [@types/rdfjs__dataset](https://npmjs.com/package/@types/rdfjs__dataset), [@types/rdfjs__environment](https://npmjs.com/package/@types/rdfjs__environment), [@types/rdfjs__fetch-lite](https://npmjs.com/package/@types/rdfjs__fetch-lite), [@types/rdfjs__namespace](https://npmjs.com/package/@types/rdfjs__namespace), [@types/rdfjs__prefix-map](https://npmjs.com/package/@types/rdfjs__prefix-map), [@types/rdfjs__score](https://npmjs.com/package/@types/rdfjs__score), [@types/rdfjs__term-map](https://npmjs.com/package/@types/rdfjs__term-map), [@types/rdfjs__term-set](https://npmjs.com/package/@types/rdfjs__term-set), [@types/rdfjs__traverser](https://npmjs.com/package/@types/rdfjs__traverser), [@types/rdfjs__types](https://npmjs.com/package/@types/rdfjs__types) | ||
@@ -14,0 +14,0 @@ * Global values: none |
13209
221