@piggly/ddd-toolkit
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,3 +7,3 @@ import Entity from './Entity'; | ||
*/ | ||
export default abstract class AggregateRoot<Props, Id extends EntityID> extends Entity<Props, Id> { | ||
export default abstract class AggregateRoot<Props, Id extends EntityID<any>> extends Entity<Props, Id> { | ||
} |
@@ -21,3 +21,3 @@ import BaseEntity from './Entity'; | ||
* | ||
* @param {Map<EntityID, Entity>} [initial] | ||
* @param {Map<EntityID<any>, Entity>} [initial] | ||
* @public | ||
@@ -29,3 +29,3 @@ * @constructor | ||
*/ | ||
constructor(initial?: Map<EntityID, Entity>); | ||
constructor(initial?: Map<EntityID<any>, Entity>); | ||
/** | ||
@@ -32,0 +32,0 @@ * Add an array of entities to the collection. |
@@ -21,3 +21,3 @@ "use strict"; | ||
* | ||
* @param {Map<EntityID, Entity>} [initial] | ||
* @param {Map<EntityID<any>, Entity>} [initial] | ||
* @public | ||
@@ -24,0 +24,0 @@ * @constructor |
@@ -6,3 +6,3 @@ import BaseValueObject from './ValueObject'; | ||
*/ | ||
export default class CollectionOfValueObject<ValueObject extends BaseValueObject<any>> { | ||
export default class CollectionOfValueObjects<ValueObject extends BaseValueObject<any>> { | ||
/** | ||
@@ -9,0 +9,0 @@ * An array of value objects. |
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
class CollectionOfValueObject { | ||
class CollectionOfValueObjects { | ||
/** | ||
@@ -157,3 +157,3 @@ * An array of value objects. | ||
} | ||
exports.default = CollectionOfValueObject; | ||
exports.default = CollectionOfValueObjects; | ||
//# sourceMappingURL=CollectionOfValueObjects.js.map |
@@ -7,3 +7,3 @@ import Entity from './Entity'; | ||
*/ | ||
export default abstract class AggregateRoot<Props, Id extends EntityID> extends Entity<Props, Id> { | ||
export default abstract class AggregateRoot<Props, Id extends EntityID<any>> extends Entity<Props, Id> { | ||
} |
@@ -21,3 +21,3 @@ import BaseEntity from './Entity'; | ||
* | ||
* @param {Map<EntityID, Entity>} [initial] | ||
* @param {Map<EntityID<any>, Entity>} [initial] | ||
* @public | ||
@@ -29,3 +29,3 @@ * @constructor | ||
*/ | ||
constructor(initial?: Map<EntityID, Entity>); | ||
constructor(initial?: Map<EntityID<any>, Entity>); | ||
/** | ||
@@ -32,0 +32,0 @@ * Add an array of entities to the collection. |
@@ -19,3 +19,3 @@ /** | ||
* | ||
* @param {Map<EntityID, Entity>} [initial] | ||
* @param {Map<EntityID<any>, Entity>} [initial] | ||
* @public | ||
@@ -22,0 +22,0 @@ * @constructor |
@@ -6,3 +6,3 @@ import BaseValueObject from './ValueObject'; | ||
*/ | ||
export default class CollectionOfValueObject<ValueObject extends BaseValueObject<any>> { | ||
export default class CollectionOfValueObjects<ValueObject extends BaseValueObject<any>> { | ||
/** | ||
@@ -9,0 +9,0 @@ * An array of value objects. |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
export default class CollectionOfValueObject { | ||
export default class CollectionOfValueObjects { | ||
/** | ||
@@ -8,0 +8,0 @@ * An array of value objects. |
{ | ||
"name": "@piggly/ddd-toolkit", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A bunch of tools to use Model-Driven Design and Domain-Driven Design architecture in a back-end application.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
139138