Attaches a human-readable description to the class, property, method, or parameter.
@Description( description: string)Attaches a human-readable description to the class, property, method, or parameter.
stringAttaches a human-readable description to the class, property, method, or parameter.
This decorator sets the
descriptionproperty on the associatedMetadataDescriptor.
@Description('Represents a user profile with personal and contact information')
class Profile {
fullName: string;
email: string;
}
class Profile {
@Description('The full name of the user as displayed on their profile')
fullName: string;
}
class ProfileService {
@Description('Updates the user profile with the provided information')
updateProfile(profile: Profile): void {
// ...
}
}
class ProfileService {
updateProfile(
@Description('The updated profile data to be saved')
profile: Profile
): void {
// ...
}
}
