From 9183da62484bcfb1701600cfd0af1c3868716abd Mon Sep 17 00:00:00 2001 From: Anthony Wikkerink Date: Fri, 13 Dec 2024 15:05:33 -0500 Subject: [PATCH] Simplify typedefs --- components/button/button-mixin.js | 3 ++- components/count-badge/count-badge-mixin.js | 3 ++- components/demo/demo-passthrough-mixin.js | 3 ++- components/dialog/dialog-mixin.js | 3 ++- components/dropdown/dropdown-content-mixin.js | 3 ++- components/dropdown/dropdown-opener-mixin.js | 3 ++- components/form/form-element-mixin.js | 3 ++- components/form/form-mixin.js | 3 ++- components/hierarchical-view/hierarchical-view-mixin.js | 3 ++- components/inputs/input-inline-help.js | 3 ++- components/list/list-item-button-mixin.js | 3 ++- components/list/list-item-checkbox-mixin.js | 3 ++- components/list/list-item-drag-drop-mixin.js | 3 ++- components/list/list-item-expand-collapse-mixin.js | 3 ++- components/list/list-item-link-mixin.js | 3 ++- components/list/list-item-mixin.js | 3 ++- components/list/list-item-role-mixin.js | 3 ++- components/menu/menu-item-mixin.js | 3 ++- components/menu/menu-item-radio-mixin.js | 3 ++- components/menu/menu-item-selectable-mixin.js | 3 ++- components/meter/meter-mixin.js | 3 ++- components/overflow-group/overflow-group-mixin.js | 3 ++- components/paging/pageable-mixin.js | 3 ++- components/paging/pageable-subscriber-mixin.js | 4 +++- components/popover/popover-mixin.js | 3 ++- components/selection/selection-action-mixin.js | 4 +++- components/selection/selection-mixin.js | 4 +++- components/selection/selection-observer-mixin.js | 4 +++- components/skeleton/skeleton-group-mixin.js | 3 ++- components/skeleton/skeleton-mixin.js | 3 ++- components/switch/switch-mixin.js | 3 ++- components/tabs/tab-panel-mixin.js | 3 ++- components/tag-list/tag-list-item-mixin.js | 3 ++- components/validation/validation-custom-mixin.js | 3 ++- mixins/arrow-keys/arrow-keys-mixin.js | 3 ++- mixins/async-container/async-container-mixin.js | 3 ++- mixins/collection/collection-mixin.js | 3 ++- mixins/interactive/interactive-mixin.js | 3 ++- mixins/labelled/labelled-mixin.js | 3 ++- mixins/property-required/property-required-mixin.js | 3 ++- mixins/rtl/rtl-mixin.js | 3 ++- mixins/theme/theme-mixin.js | 3 ++- mixins/visible-on-ancestor/visible-on-ancestor-mixin.js | 3 ++- 43 files changed, 90 insertions(+), 43 deletions(-) diff --git a/components/button/button-mixin.js b/components/button/button-mixin.js index 3d3ac47e85..097e92f050 100644 --- a/components/button/button-mixin.js +++ b/components/button/button-mixin.js @@ -1,8 +1,9 @@ import { FocusMixin } from '../../mixins/focus/focus-mixin.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/count-badge/count-badge-mixin.js b/components/count-badge/count-badge-mixin.js index 2d38a15603..a87987c3fd 100644 --- a/components/count-badge/count-badge-mixin.js +++ b/components/count-badge/count-badge-mixin.js @@ -12,8 +12,9 @@ import { styleMap } from 'lit/directives/style-map.js'; const maxBadgeDigits = 5; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/demo/demo-passthrough-mixin.js b/components/demo/demo-passthrough-mixin.js index 99a250e3f5..609e8bc794 100644 --- a/components/demo/demo-passthrough-mixin.js +++ b/components/demo/demo-passthrough-mixin.js @@ -1,8 +1,9 @@ import { LitElement } from 'lit'; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/dialog/dialog-mixin.js b/components/dialog/dialog-mixin.js index dafb396ef1..643573d224 100644 --- a/components/dialog/dialog-mixin.js +++ b/components/dialog/dialog-mixin.js @@ -29,8 +29,9 @@ const abortAction = 'abort'; const defaultMargin = { top: 75, right: 30, bottom: 30, left: 30 }; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/dropdown/dropdown-content-mixin.js b/components/dropdown/dropdown-content-mixin.js index b2fe8ee05f..78adc5da90 100644 --- a/components/dropdown/dropdown-content-mixin.js +++ b/components/dropdown/dropdown-content-mixin.js @@ -22,8 +22,9 @@ const pointerLength = 16; const pointerRotatedLength = Math.SQRT2 * parseFloat(pointerLength); /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/dropdown/dropdown-opener-mixin.js b/components/dropdown/dropdown-opener-mixin.js index 67603a1605..84efcfbd6e 100644 --- a/components/dropdown/dropdown-opener-mixin.js +++ b/components/dropdown/dropdown-opener-mixin.js @@ -8,8 +8,9 @@ const intersectionObserver = new IntersectionObserver(entries => { }, { threshold: 0 }); // 0-1 (0 -> intersection requires any pixel visible, 1 -> intersection requires all pixels visible) /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/form/form-element-mixin.js b/components/form/form-element-mixin.js index 1cf8658935..aba42c81a3 100644 --- a/components/form/form-element-mixin.js +++ b/components/form/form-element-mixin.js @@ -76,8 +76,9 @@ export class FormElementValidityState { } /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/form/form-mixin.js b/components/form/form-mixin.js index 5e4d650b1d..335fdcdf20 100644 --- a/components/form/form-mixin.js +++ b/components/form/form-mixin.js @@ -8,8 +8,9 @@ import { LocalizeCoreElement } from '../../helpers/localize-core-element.js'; import { localizeFormElement } from './form-element-localize-helper.js'; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/hierarchical-view/hierarchical-view-mixin.js b/components/hierarchical-view/hierarchical-view-mixin.js index 7277b2a170..e9cb4e266f 100644 --- a/components/hierarchical-view/hierarchical-view-mixin.js +++ b/components/hierarchical-view/hierarchical-view-mixin.js @@ -8,8 +8,9 @@ const __nativeFocus = document.createElement('div').focus; const escapeKeyCode = 27; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/inputs/input-inline-help.js b/components/inputs/input-inline-help.js index d5a45f396f..d3691321cb 100644 --- a/components/inputs/input-inline-help.js +++ b/components/inputs/input-inline-help.js @@ -13,8 +13,9 @@ export const inlineHelpStyles = [ ]; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/list/list-item-button-mixin.js b/components/list/list-item-button-mixin.js index 16a5d554d7..2f71ec41fd 100644 --- a/components/list/list-item-button-mixin.js +++ b/components/list/list-item-button-mixin.js @@ -4,8 +4,9 @@ import { getUniqueId } from '../../helpers/uniqueId.js'; import { ListItemMixin } from './list-item-mixin.js'; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/list/list-item-checkbox-mixin.js b/components/list/list-item-checkbox-mixin.js index 341a8b66e3..f8e8aa65ba 100644 --- a/components/list/list-item-checkbox-mixin.js +++ b/components/list/list-item-checkbox-mixin.js @@ -5,8 +5,9 @@ import { SelectionInfo } from '../selection/selection-mixin.js'; import { SkeletonMixin } from '../skeleton/skeleton-mixin.js'; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/list/list-item-drag-drop-mixin.js b/components/list/list-item-drag-drop-mixin.js index 3f88f717d8..799013c33b 100644 --- a/components/list/list-item-drag-drop-mixin.js +++ b/components/list/list-item-drag-drop-mixin.js @@ -247,8 +247,9 @@ export class NewPositionEventDetails { } /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/list/list-item-expand-collapse-mixin.js b/components/list/list-item-expand-collapse-mixin.js index ee43699334..0d40290e61 100644 --- a/components/list/list-item-expand-collapse-mixin.js +++ b/components/list/list-item-expand-collapse-mixin.js @@ -8,8 +8,9 @@ const dragIntervalDelay = 100; const dragHoverDropTime = 1000; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/list/list-item-link-mixin.js b/components/list/list-item-link-mixin.js index 7ebb051613..8f6bede904 100644 --- a/components/list/list-item-link-mixin.js +++ b/components/list/list-item-link-mixin.js @@ -4,8 +4,9 @@ import { getUniqueId } from '../../helpers/uniqueId.js'; import { ListItemMixin } from './list-item-mixin.js'; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/list/list-item-mixin.js b/components/list/list-item-mixin.js index a66ea8cc31..990ff2ed95 100644 --- a/components/list/list-item-mixin.js +++ b/components/list/list-item-mixin.js @@ -40,8 +40,9 @@ function addTabListener() { let hasDisplayedKeyboardTooltip = false; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/list/list-item-role-mixin.js b/components/list/list-item-role-mixin.js index 74e1e2fa6b..ce89c6ee1e 100644 --- a/components/list/list-item-role-mixin.js +++ b/components/list/list-item-role-mixin.js @@ -1,8 +1,9 @@ import { findComposedAncestor } from '../../helpers/dom.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/menu/menu-item-mixin.js b/components/menu/menu-item-mixin.js index 32492b09b4..da114d7268 100644 --- a/components/menu/menu-item-mixin.js +++ b/components/menu/menu-item-mixin.js @@ -1,6 +1,7 @@ /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/menu/menu-item-radio-mixin.js b/components/menu/menu-item-radio-mixin.js index 39a21b565f..d90bd7524e 100644 --- a/components/menu/menu-item-radio-mixin.js +++ b/components/menu/menu-item-radio-mixin.js @@ -1,8 +1,9 @@ import { MenuItemSelectableMixin } from './menu-item-selectable-mixin.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/menu/menu-item-selectable-mixin.js b/components/menu/menu-item-selectable-mixin.js index ff91fc2953..2228173490 100644 --- a/components/menu/menu-item-selectable-mixin.js +++ b/components/menu/menu-item-selectable-mixin.js @@ -1,8 +1,9 @@ import { MenuItemMixin } from './menu-item-mixin.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/meter/meter-mixin.js b/components/meter/meter-mixin.js index 27a32acddf..c14b03f912 100644 --- a/components/meter/meter-mixin.js +++ b/components/meter/meter-mixin.js @@ -2,8 +2,9 @@ import { formatPercent } from '@brightspace-ui/intl/lib/number.js'; import { LocalizeCoreElement } from '../../helpers/localize-core-element.js'; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/overflow-group/overflow-group-mixin.js b/components/overflow-group/overflow-group-mixin.js index f33314c3ff..24fda3a6c1 100644 --- a/components/overflow-group/overflow-group-mixin.js +++ b/components/overflow-group/overflow-group-mixin.js @@ -26,8 +26,9 @@ async function filterAsync(arr, callback) { } /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/paging/pageable-mixin.js b/components/paging/pageable-mixin.js index a1f445cce6..7a99bf23d4 100644 --- a/components/paging/pageable-mixin.js +++ b/components/paging/pageable-mixin.js @@ -3,8 +3,9 @@ import { html } from 'lit'; import { SubscriberRegistryController } from '../../controllers/subscriber/subscriberControllers.js'; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/paging/pageable-subscriber-mixin.js b/components/paging/pageable-subscriber-mixin.js index d163c7a987..1ff1816987 100644 --- a/components/paging/pageable-subscriber-mixin.js +++ b/components/paging/pageable-subscriber-mixin.js @@ -1,10 +1,12 @@ import { EventSubscriberController, IdSubscriberController } from '../../controllers/subscriber/subscriberControllers.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ + /** * @template {ReactiveElementClassType} S * @param {S} superclass diff --git a/components/popover/popover-mixin.js b/components/popover/popover-mixin.js index 34312eebfa..f34075d001 100644 --- a/components/popover/popover-mixin.js +++ b/components/popover/popover-mixin.js @@ -20,8 +20,9 @@ const isSupported = ('popover' in HTMLElement.prototype); console.log('Popover', isSupported); /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/selection/selection-action-mixin.js b/components/selection/selection-action-mixin.js index be68c845cd..70c951d3fc 100644 --- a/components/selection/selection-action-mixin.js +++ b/components/selection/selection-action-mixin.js @@ -4,10 +4,12 @@ import { SelectionInfo } from './selection-mixin.js'; import { SelectionObserverMixin } from './selection-observer-mixin.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ + /** * @template {ReactiveElementClassType} S * @param {S} superclass diff --git a/components/selection/selection-mixin.js b/components/selection/selection-mixin.js index e9c3fd9f56..f51802d486 100644 --- a/components/selection/selection-mixin.js +++ b/components/selection/selection-mixin.js @@ -45,10 +45,12 @@ export class SelectionInfo { } /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ + /** * @template {ReactiveElementClassType} S * @param {S} superclass diff --git a/components/selection/selection-observer-mixin.js b/components/selection/selection-observer-mixin.js index 32fb46edd7..b4183b9e3c 100644 --- a/components/selection/selection-observer-mixin.js +++ b/components/selection/selection-observer-mixin.js @@ -2,10 +2,12 @@ import { cssEscape } from '../../helpers/dom.js'; import { SelectionInfo } from './selection-mixin.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ + /** * @template {ReactiveElementClassType} S * @param {S} superclass diff --git a/components/skeleton/skeleton-group-mixin.js b/components/skeleton/skeleton-group-mixin.js index 8c13bc2da8..32affa2c54 100644 --- a/components/skeleton/skeleton-group-mixin.js +++ b/components/skeleton/skeleton-group-mixin.js @@ -3,8 +3,9 @@ import { SkeletonMixin } from './skeleton-mixin.js'; import { SubscriberRegistryController } from '../../controllers/subscriber/subscriberControllers.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/skeleton/skeleton-mixin.js b/components/skeleton/skeleton-mixin.js index c2ea016bdf..78e1978f00 100644 --- a/components/skeleton/skeleton-mixin.js +++ b/components/skeleton/skeleton-mixin.js @@ -149,8 +149,9 @@ export const skeletonStyles = css` `; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/switch/switch-mixin.js b/components/switch/switch-mixin.js index a789c49c6c..75ff6d2466 100644 --- a/components/switch/switch-mixin.js +++ b/components/switch/switch-mixin.js @@ -8,8 +8,9 @@ import { ifDefined } from 'lit/directives/if-defined.js'; import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js'; /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/tabs/tab-panel-mixin.js b/components/tabs/tab-panel-mixin.js index 6812073bc5..5eaf100d88 100644 --- a/components/tabs/tab-panel-mixin.js +++ b/components/tabs/tab-panel-mixin.js @@ -2,8 +2,9 @@ import { css } from 'lit'; import { getUniqueId } from '../../helpers/uniqueId.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/components/tag-list/tag-list-item-mixin.js b/components/tag-list/tag-list-item-mixin.js index 145d924fdb..f28a753f54 100644 --- a/components/tag-list/tag-list-item-mixin.js +++ b/components/tag-list/tag-list-item-mixin.js @@ -39,8 +39,9 @@ export function resetHasDisplayedKeyboardTooltip() { } /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/components/validation/validation-custom-mixin.js b/components/validation/validation-custom-mixin.js index 6d68a688e9..f40a4f695f 100644 --- a/components/validation/validation-custom-mixin.js +++ b/components/validation/validation-custom-mixin.js @@ -1,8 +1,9 @@ import { isCustomFormElement } from '../form/form-helper.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/mixins/arrow-keys/arrow-keys-mixin.js b/mixins/arrow-keys/arrow-keys-mixin.js index a2ceabae36..63a5a19f1a 100644 --- a/mixins/arrow-keys/arrow-keys-mixin.js +++ b/mixins/arrow-keys/arrow-keys-mixin.js @@ -10,8 +10,9 @@ const keyCodes = Object.freeze({ }); /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/mixins/async-container/async-container-mixin.js b/mixins/async-container/async-container-mixin.js index 9511ac3e6e..c8a0362ee1 100644 --- a/mixins/async-container/async-container-mixin.js +++ b/mixins/async-container/async-container-mixin.js @@ -6,8 +6,9 @@ export const asyncStates = { }; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/mixins/collection/collection-mixin.js b/mixins/collection/collection-mixin.js index 95810d0ff2..e3e34d20b6 100644 --- a/mixins/collection/collection-mixin.js +++ b/mixins/collection/collection-mixin.js @@ -1,6 +1,7 @@ /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/mixins/interactive/interactive-mixin.js b/mixins/interactive/interactive-mixin.js index e626892b58..f5286adede 100644 --- a/mixins/interactive/interactive-mixin.js +++ b/mixins/interactive/interactive-mixin.js @@ -16,8 +16,9 @@ export function isInteractiveDescendant(node) { } /** + * @typedef {typeof import('lit').LitElement} LitElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} LitElementConstructor - * @typedef {LitElementConstructor & Pick} LitElementClassType + * @typedef {LitElementConstructor & Pick} LitElementClassType */ /** diff --git a/mixins/labelled/labelled-mixin.js b/mixins/labelled/labelled-mixin.js index 044961bdae..68b1ab2cff 100644 --- a/mixins/labelled/labelled-mixin.js +++ b/mixins/labelled/labelled-mixin.js @@ -47,8 +47,9 @@ const waitForElement = async(contextElement, selector, timeout) => { }; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/mixins/property-required/property-required-mixin.js b/mixins/property-required/property-required-mixin.js index 982b290f7c..7371874b8e 100644 --- a/mixins/property-required/property-required-mixin.js +++ b/mixins/property-required/property-required-mixin.js @@ -23,8 +23,9 @@ export function createInvalidPropertyTypeMessage(elem, propertyName) { } /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/mixins/rtl/rtl-mixin.js b/mixins/rtl/rtl-mixin.js index c5e6499426..ed7504ecd4 100644 --- a/mixins/rtl/rtl-mixin.js +++ b/mixins/rtl/rtl-mixin.js @@ -2,8 +2,9 @@ import { dedupeMixin } from '@open-wc/dedupe-mixin'; import { getDocumentLocaleSettings } from '@brightspace-ui/intl/lib/common.js'; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/mixins/theme/theme-mixin.js b/mixins/theme/theme-mixin.js index 134b25f2e2..e069b2b61e 100644 --- a/mixins/theme/theme-mixin.js +++ b/mixins/theme/theme-mixin.js @@ -1,6 +1,7 @@ /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /** diff --git a/mixins/visible-on-ancestor/visible-on-ancestor-mixin.js b/mixins/visible-on-ancestor/visible-on-ancestor-mixin.js index 17ed48e9e5..09ee3b9dc6 100644 --- a/mixins/visible-on-ancestor/visible-on-ancestor-mixin.js +++ b/mixins/visible-on-ancestor/visible-on-ancestor-mixin.js @@ -42,8 +42,9 @@ export const visibleOnAncestorStyles = css` `; /** + * @typedef {typeof import('lit').ReactiveElement} ReactiveElementType * @typedef {import('@open-wc/dedupe-mixin').Constructor} ReactiveElementConstructor - * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType + * @typedef {ReactiveElementConstructor & Pick} ReactiveElementClassType */ /**