Property
Decorator for deprecated properties.
def Property(
deprecation: string = null,
removal: string = null,
alternative: string = null,
description: string = null
) - > function
Decorator for deprecated properties.
Parameters
| Name | Type | Description |
|---|---|---|
| deprecation | string = null | The version or date when the property was first marked as deprecated |
| removal | string = null | The version or date when the property is scheduled to be removed from the codebase |
| alternative | string = null | A string describing the recommended replacement or alternative approach for callers to use |
| description | string = null | A custom description of the property; defaults to the name of the decorated function if not provided |
Returns
| Type | Description |
|---|---|
function | A decorator function that wraps a property with deprecation metadata and logic |