@types/rdfjs__environment
Advanced tools
Comparing version
interface FactoryConstructor<F = {}> { | ||
new (...args: any[]): F; | ||
exports?: string[]; | ||
} | ||
type ReturnFactory<C> = C extends FactoryConstructor<infer X> ? X : never; | ||
type Narrow<T> = | ||
| (T extends infer U ? U : never) | ||
| Extract<T, number | string | boolean | bigint | symbol | null | undefined | []> | ||
| ([T] extends [[]] ? [] : { [K in keyof T]: Narrow<T[K]> }); | ||
type ReturnFactory<C> = C extends FactoryConstructor<infer X> ? X : C; | ||
type Distribute<U> = U extends any ? ReturnFactory<U> : never; | ||
@@ -14,8 +18,6 @@ | ||
clone(): Environment<T> | ||
} & Omit<{ | ||
[K in keyof UnionToIntersection<T>]: UnionToIntersection<T>[K] | ||
}, 'init'>; | ||
} & Omit<UnionToIntersection<T>, 'init' | 'clone'>; | ||
interface EnvironmentCtor { | ||
new<F extends FactoryConstructor>(factories: F[], options?: { bind: boolean }): Environment<Distribute<F>>; | ||
new<F extends ReadonlyArray<FactoryConstructor<any>>>(factories: Narrow<F>, options?: { bind: boolean }): Environment<Distribute<F[number]>>; | ||
} | ||
@@ -22,0 +24,0 @@ |
{ | ||
"name": "@types/rdfjs__environment", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "TypeScript definitions for @rdfjs/environment", | ||
@@ -36,5 +36,5 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__environment", | ||
}, | ||
"typesPublisherContentHash": "d10ee77a636542ddab5d58919a2a4e63c53415fe509037122834495c64537103", | ||
"typesPublisherContentHash": "d320c98e8494daed7f68b56555ccf0578338693339a761df2486cf395f93e7ee", | ||
"typeScriptVersion": "4.3", | ||
"type": "module" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 29 Jun 2023 14:32:56 GMT | ||
* Last updated: Sat, 22 Jul 2023 12:02:53 GMT | ||
* Dependencies: [@types/rdfjs__data-model](https://npmjs.com/package/@types/rdfjs__data-model), [@types/rdfjs__dataset](https://npmjs.com/package/@types/rdfjs__dataset), [@types/rdfjs__namespace](https://npmjs.com/package/@types/rdfjs__namespace), [@types/rdfjs__sink-map](https://npmjs.com/package/@types/rdfjs__sink-map), [@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__types](https://npmjs.com/package/@types/rdfjs__types) | ||
@@ -14,0 +14,0 @@ * Global values: none |
5978
3.03%61
1.67%