Skip to content

Commit

Permalink
docs(fast-element): improve JSDoc for AttributeDefinition setValue me…
Browse files Browse the repository at this point in the history
…thod

- Added a detailed description for the newValue parameter in the setValue method.
- Ensures better clarity and documentation for the method's functionality.
  • Loading branch information
doguabaris committed Dec 10, 2024
1 parent 8f0d498 commit fdf26fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fast-element: Simplify conditional checks in element-controller",
"packageName": "@microsoft/fast-element",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class AttributeDefinition implements Accessor {
/**
* Sets the value of the attribute/property on the source element.
* @param source - The source element to access.
* @param newValue
* @param newValue - The value to set the attribute/property to.
*/
public setValue(source: HTMLElement, newValue: any): void {
const oldValue = source[this.fieldName];
Expand Down

0 comments on commit fdf26fd

Please sign in to comment.