Provides utilities for TypeScript reflection and metadata manipulation
Members
# static constant VERSION
Stores the semantic version number of the package
Current version of the reflection package
string
# static readonly exports.ReflectionKeys
Holds the constant keys used in the reflection system for accessing metadata
Enum containing metadata keys used for reflection
Properties:
Name | Type | Description |
---|---|---|
TYPE |
string
|
Key for accessing type metadata, value is "design:type" |
Methods
# static isEqual(a, b, propsToIgnore) → {boolean}
Performs a deep equality check between two values, handling various types including primitives, objects, arrays, dates, and more
Enhanced algorithm for deep comparison of any two values with optional ignored properties
Parameters:
Name | Type | Description |
---|---|---|
a |
unknown
|
First value to compare |
b |
unknown
|
Second value to compare |
propsToIgnore |
Array.<string>
|
A list of property names to ignore during comparison |
Returns true if the values are deeply equal, false otherwise
boolean
Type Definitions
Object
# DecoratorMetadata
Represents the structure of metadata associated with decorators, containing a key and properties
Type definition for storing decorator metadata
Properties:
Name | Type | Description |
---|---|---|
key |
string
|
The identifier key for the decorator |
props |
T
|
The properties/configuration of the decorator |
key |
string
|
|
props |
T
|