@rustable/utils
Advanced tools
Comparing version 0.1.7 to 0.2.0
@@ -48,2 +48,2 @@ /** | ||
*/ | ||
export declare function typeId(target: any, genericParams?: any | any[]): TypeId; | ||
export declare function typeId(target: any, genericParams?: any[]): TypeId; |
@@ -25,3 +25,3 @@ "use strict"; | ||
} | ||
if (genericParams === void 0) { | ||
if (genericParams === void 0 || genericParams.length === 0) { | ||
const existingId = typeIdMap.get(constructor); | ||
@@ -28,0 +28,0 @@ if (existingId !== void 0) { |
{ | ||
"name": "@rustable/utils", | ||
"version": "0.1.7", | ||
"version": "0.2.0", | ||
"description": "Utility TypeScript utilities inspired by Rust, providing type-safe implementations of HashMap, TypeId, deep cloning, hashing, and equality comparison", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
29276