Skip to content

Commit 7ff89e2

Browse files
authored
chore: fix some incorrect JSDoc found by eslint-plugin-jsdoc (#10012)
1 parent 2c05f4f commit 7ff89e2

26 files changed

+28
-41
lines changed

packages/a11y-base/src/aria-hidden.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const applyAttributeToOthers = (originalTarget, parentNode, markerName, controlA
115115
targets.forEach(keep);
116116

117117
/**
118-
* @param {?Node} el
118+
* @param {?Node} parent
119119
*/
120120
const deep = (parent) => {
121121
if (!parent || elementsToStop.has(parent)) {

packages/a11y-base/src/aria-id-reference.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const attributeToTargets = new Map();
1717
*
1818
* @param {string} attr the attribute name used as key in the map
1919
*
20-
* @returns {WeakMap<HTMLElement, Set<string>} a weak map with the stored values for the elements being controlled by the helper
20+
* @return {WeakMap<HTMLElement, Set<string>>} a weak map with the stored values for the elements being controlled by the helper
2121
*/
2222
function getAttrMap(attr) {
2323
if (!attributeToTargets.has(attr)) {
@@ -32,8 +32,6 @@ function getAttrMap(attr) {
3232
*
3333
* @param {HTMLElement} target
3434
* @param {string} attr the attribute to be cleared
35-
* @param {boolean} storeValue whether or not the current value of the attribute should be stored on the map
36-
* @returns
3735
*/
3836
function cleanAriaIDReference(target, attr) {
3937
if (!target) {

packages/checkbox-group/src/vaadin-checkbox-group-mixin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { FieldMixin } from '@vaadin/field-base/src/field-mixin.js';
1616
* @mixes DisabledMixin
1717
* @mixes FieldMixin
1818
* @mixes FocusMixin
19-
* @mixes KeyboardMixin
2019
*/
2120
export const CheckboxGroupMixin = (superclass) =>
2221
class CheckboxGroupMixinClass extends FieldMixin(FocusMixin(DisabledMixin(superclass))) {

packages/component-base/src/data-provider-controller/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*
1919
* @param {Cache} cache
2020
* @param {number} flatIndex
21+
* @param {number} level
2122
*/
2223
export function getFlatIndexContext(cache, flatIndex, level = 0) {
2324
let levelIndex = flatIndex;
@@ -53,7 +54,6 @@ export function getFlatIndexContext(cache, flatIndex, level = 0) {
5354
*
5455
* If the item isn't found, the method returns undefined.
5556
*
56-
* @param {Cache} cache
5757
* @param {{ getItemId: (item: unknown) => unknown}} context
5858
* @param {Cache} cache
5959
* @param {unknown} targetItem

packages/component-base/src/slot-controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class SlotController extends EventTarget {
1515
* Ensure that every instance has unique ID.
1616
*
1717
* @param {HTMLElement} host
18-
* @param {string} slotName
18+
* @param {string} prefix
1919
* @return {string}
2020
* @protected
2121
*/

packages/component-base/src/tooltip-controller.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export class TooltipController extends SlotController {
5656
/**
5757
* Override to notify the host when the tooltip is removed.
5858
*
59-
* @param {Node} tooltipNode
6059
* @protected
6160
* @override
6261
*/

packages/component-base/src/virtualizer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ export class Virtualizer {
7878
/**
7979
* Flushes active asynchronous tasks so that the component and the DOM end up in a stable state
8080
*
81-
* @method update
82-
* @param {number | undefined} startIndex The start index of the range
83-
* @param {number | undefined} endIndex The end index of the range
81+
* @method flush
8482
*/
8583
flush() {
8684
this.__adapter.flush();

packages/context-menu/src/vaadin-contextmenu-items-mixin.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ export const ItemsMixin = (superClass) =>
1616
* @typedef ContextMenuItem
1717
* @type {object}
1818
* @property {string} text - Text to be set as the menu item component's textContent
19-
* @property {union: string | object} component - The component to represent the item.
19+
* @property {string | HTMLElement} component - The component to represent the item.
2020
* Either a tagName or an element instance. Defaults to "vaadin-context-menu-item".
2121
* @property {boolean} disabled - If true, the item is disabled and cannot be selected
2222
* @property {boolean} checked - If true, the item shows a checkmark next to it
2323
* @property {boolean} keepOpen - If true, the menu will not be closed on item selection
2424
* @property {string} className - A space-delimited list of CSS class names to be set on the menu item component.
25-
* @property {union: string | string[]} theme - If set, sets the given theme(s) as an attribute to the menu item component, overriding any theme set on the context menu.
26-
* @property {MenuItem[]} children - Array of child menu items
25+
* @property {string | string[]} theme - If set, sets the given theme(s) as an attribute to the menu item component, overriding any theme set on the context menu.
26+
* @property {ContextMenuItem[]} children - Array of child menu items
2727
*/
2828

2929
/**
@@ -403,7 +403,6 @@ export const ItemsMixin = (superClass) =>
403403
/**
404404
* @param {!HTMLElement} root
405405
* @param {!ContextMenu} menu
406-
* @param {!ContextMenuRendererContext} context
407406
* @protected
408407
*/
409408
__itemsRenderer(root, menu) {

packages/crud/src/vaadin-crud-edit.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import { crudEditStyles } from './styles/vaadin-crud-edit-base-styles.js';
2222
* a `<vaadin-crud>` to enable editing.
2323
*
2424
* @customElement
25-
* @extends HTMLElement
26-
* @mixes ThemableMixin
25+
* @extends Button
2726
*/
2827
class CrudEdit extends Button {
2928
static get is() {

packages/date-picker/src/vaadin-date-picker-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Get ISO 8601 week number for the given date.
99
*
10-
* @param {!Date} Date object
10+
* @param {!Date} date
1111
* @return {number} Week number
1212
*/
1313
export function getISOWeekNumber(date) {

0 commit comments

Comments
 (0)