Skip to content

Commit

Permalink
Simplify typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
awikkerink committed Dec 13, 2024
1 parent 551efae commit 9183da6
Show file tree
Hide file tree
Showing 43 changed files with 90 additions and 43 deletions.
3 changes: 2 additions & 1 deletion components/button/button-mixin.js
Original file line number Diff line number Diff line change
@@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/count-badge/count-badge-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/demo/demo-passthrough-mixin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { LitElement } from 'lit';

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/dialog/dialog-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/dropdown/dropdown-content-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/dropdown/dropdown-opener-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/form/form-element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ export class FormElementValidityState {
}

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/form/form-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/hierarchical-view/hierarchical-view-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/inputs/input-inline-help.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export const inlineHelpStyles = [
];

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/list/list-item-button-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/list/list-item-checkbox-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/list/list-item-drag-drop-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ export class NewPositionEventDetails {
}

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/list/list-item-expand-collapse-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ const dragIntervalDelay = 100;
const dragHoverDropTime = 1000;

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/list/list-item-link-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/list/list-item-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ function addTabListener() {
let hasDisplayedKeyboardTooltip = false;

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/list/list-item-role-mixin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { findComposedAncestor } from '../../helpers/dom.js';

/**
* @typedef {typeof import('lit').ReactiveElement} ReactiveElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/menu/menu-item-mixin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* @typedef {typeof import('lit').ReactiveElement} ReactiveElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/menu/menu-item-radio-mixin.js
Original file line number Diff line number Diff line change
@@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/menu/menu-item-selectable-mixin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { MenuItemMixin } from './menu-item-mixin.js';

/**
* @typedef {typeof import('lit').ReactiveElement} ReactiveElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/meter/meter-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/overflow-group/overflow-group-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ async function filterAsync(arr, callback) {
}

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/paging/pageable-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
4 changes: 3 additions & 1 deletion components/paging/pageable-subscriber-mixin.js
Original file line number Diff line number Diff line change
@@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/


Check failure on line 9 in components/paging/pageable-subscriber-mixin.js

View workflow job for this annotation

GitHub Actions / Lint

More than 1 blank line not allowed
/**
* @template {ReactiveElementClassType} S
* @param {S} superclass
Expand Down
3 changes: 2 additions & 1 deletion components/popover/popover-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
4 changes: 3 additions & 1 deletion components/selection/selection-action-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/


Check failure on line 12 in components/selection/selection-action-mixin.js

View workflow job for this annotation

GitHub Actions / Lint

More than 1 blank line not allowed
/**
* @template {ReactiveElementClassType} S
* @param {S} superclass
Expand Down
4 changes: 3 additions & 1 deletion components/selection/selection-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ export class SelectionInfo {
}

/**
* @typedef {typeof import('lit').ReactiveElement} ReactiveElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/


Check failure on line 53 in components/selection/selection-mixin.js

View workflow job for this annotation

GitHub Actions / Lint

More than 1 blank line not allowed
/**
* @template {ReactiveElementClassType} S
* @param {S} superclass
Expand Down
4 changes: 3 additions & 1 deletion components/selection/selection-observer-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/


Check failure on line 10 in components/selection/selection-observer-mixin.js

View workflow job for this annotation

GitHub Actions / Lint

More than 1 blank line not allowed
/**
* @template {ReactiveElementClassType} S
* @param {S} superclass
Expand Down
3 changes: 2 additions & 1 deletion components/skeleton/skeleton-group-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/skeleton/skeleton-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ export const skeletonStyles = css`
`;

/**
* @typedef {typeof import('lit').ReactiveElement} ReactiveElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/switch/switch-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/tabs/tab-panel-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/tag-list/tag-list-item-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export function resetHasDisplayedKeyboardTooltip() {
}

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion components/validation/validation-custom-mixin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { isCustomFormElement } from '../form/form-helper.js';

/**
* @typedef {typeof import('lit').ReactiveElement} ReactiveElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').ReactiveElement>} ReactiveElementConstructor
* @typedef {ReactiveElementConstructor & Pick<typeof import('lit').ReactiveElement, keyof typeof import('lit').ReactiveElement>} ReactiveElementClassType
* @typedef {ReactiveElementConstructor & Pick<ReactiveElementType, keyof ReactiveElementType>} ReactiveElementClassType
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion mixins/arrow-keys/arrow-keys-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ const keyCodes = Object.freeze({
});

/**
* @typedef {typeof import('lit').LitElement} LitElementType
* @typedef {import('@open-wc/dedupe-mixin').Constructor<import('lit').LitElement>} LitElementConstructor
* @typedef {LitElementConstructor & Pick<typeof import('lit').LitElement, keyof typeof import('lit').LitElement>} LitElementClassType
* @typedef {LitElementConstructor & Pick<LitElementType, keyof LitElementType>} LitElementClassType
*/

/**
Expand Down
Loading

0 comments on commit 9183da6

Please sign in to comment.