@tpluscode/rdfine
Advanced tools
Comparing version
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.2.4](https://github.com/tpluscode/rdfine/compare/v0.2.3...v0.2.4) (2020-01-20) | ||
### Bug Fixes | ||
* add generic type argument to mark base class ([e65e111](https://github.com/tpluscode/rdfine/commit/e65e1118dc78ee6ff00a605dcc46fbe8f7e288f6)) | ||
### [0.2.3](https://github.com/tpluscode/rdfine/compare/v0.2.2...v0.2.3) (2020-01-17) | ||
@@ -7,0 +14,0 @@ |
@@ -6,3 +6,3 @@ import { Clownface } from 'clownface'; | ||
new (...input: any[]): A; | ||
factory: ResourceFactory<any>; | ||
factory: ResourceFactory; | ||
} | ||
@@ -13,3 +13,3 @@ interface ShouldApply { | ||
export declare type Mixin<T extends AnyFunction> = InstanceType<ReturnType<T>>; | ||
export declare class ResourceFactory<T extends AnyFunction = any> { | ||
export declare class ResourceFactory<R extends RdfResource = RdfResource, T extends AnyFunction = any> { | ||
private __mixins; | ||
@@ -19,5 +19,5 @@ BaseClass: Constructor; | ||
addMixin(mixin: Mixin<T> & ShouldApply): void; | ||
createEntity<R extends RdfResource>(term: Clownface, typeAndMixins?: Mixin<any>[] | [Constructor, ...Mixin<any>[]]): RdfResource & R; | ||
createEntity<S>(term: Clownface, typeAndMixins?: Mixin<any>[] | [Constructor, ...Mixin<any>[]]): R & S; | ||
} | ||
export {}; | ||
//# sourceMappingURL=ResourceFactory.d.ts.map |
{ | ||
"name": "@tpluscode/rdfine", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "RDF/JS idiomatic, native, enjoyable", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/index.js", |
Sorry, the diff of this file is not supported yet
68349
0.37%