@anandamideio/entity
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -58,3 +58,4 @@ /** | ||
*/ | ||
size(): number; | ||
get size(): number; | ||
get length(): number; | ||
/** | ||
@@ -65,3 +66,3 @@ * Checks if the entity map is empty. | ||
*/ | ||
isEmpty(): boolean; | ||
get isEmpty(): boolean; | ||
/** | ||
@@ -68,0 +69,0 @@ * Checks if an entity exists in the entity map. |
@@ -89,5 +89,4 @@ "use strict"; | ||
*/ | ||
size() { | ||
return this.entityMap.size; | ||
} | ||
get size() { return this.entityMap.size; } | ||
get length() { return this.size; } | ||
/** | ||
@@ -98,3 +97,3 @@ * Checks if the entity map is empty. | ||
*/ | ||
isEmpty() { | ||
get isEmpty() { | ||
return this.entityMap.size === 0; | ||
@@ -101,0 +100,0 @@ } |
{ | ||
"name": "@anandamideio/entity", | ||
"main": "dist/index.js", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "tsc -p tsconfig.json" |
13064