fix: use lion/core types wherever possible
This commit is contained in:
parent
398fe12d64
commit
cfbcccb5c5
30 changed files with 62 additions and 33 deletions
28
.changeset/fair-suns-melt.md
Normal file
28
.changeset/fair-suns-melt.md
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
'@lion/accordion': patch
|
||||||
|
'@lion/calendar': patch
|
||||||
|
'@lion/checkbox-group': patch
|
||||||
|
'@lion/collapsible': patch
|
||||||
|
'@lion/core': patch
|
||||||
|
'@lion/dialog': patch
|
||||||
|
'@lion/form': patch
|
||||||
|
'@lion/form-core': patch
|
||||||
|
'@lion/helpers': patch
|
||||||
|
'@lion/icon': patch
|
||||||
|
'@lion/input-amount': patch
|
||||||
|
'@lion/input-date': patch
|
||||||
|
'@lion/input-datepicker': patch
|
||||||
|
'@lion/input-email': patch
|
||||||
|
'@lion/input-iban': patch
|
||||||
|
'@lion/input-range': patch
|
||||||
|
'@lion/input-stepper': patch
|
||||||
|
'@lion/listbox': patch
|
||||||
|
'@lion/pagination': patch
|
||||||
|
'providence-analytics': patch
|
||||||
|
'@lion/radio-group': patch
|
||||||
|
'@lion/steps': patch
|
||||||
|
'@lion/switch': patch
|
||||||
|
'@lion/textarea': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix type imports to reuse lion where possible, in case Lit updates with new types that may break us.
|
||||||
|
|
@ -10,7 +10,7 @@ import { CalendarObject, DayObject } from '../test-helpers.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionCalendar').LionCalendar} LionCalendar
|
* @typedef {import('../src/LionCalendar').LionCalendar} LionCalendar
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionCalendar>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionCalendar>} */ (_fixture);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import '../lion-checkbox.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionCheckboxGroup').LionCheckboxGroup} LionCheckboxGroup
|
* @typedef {import('../src/LionCheckboxGroup').LionCheckboxGroup} LionCheckboxGroup
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionCheckboxGroup>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionCheckboxGroup>} */ (_fixture);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import '../lion-collapsible.js';
|
||||||
/**
|
/**
|
||||||
|
|
||||||
* @typedef {import('../src/LionCollapsible').LionCollapsible} LionCollapsible
|
* @typedef {import('../src/LionCollapsible').LionCollapsible} LionCollapsible
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionCollapsible>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionCollapsible>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import { dedupeMixin } from '@open-wc/dedupe-mixin';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {DelegateMixin}
|
* @type {DelegateMixin}
|
||||||
* @param {import('@open-wc/dedupe-mixin').Constructor<import('lit-element').LitElement>} superclass
|
* @param {import('@open-wc/dedupe-mixin').Constructor<import('../index').LitElement>} superclass
|
||||||
*/
|
*/
|
||||||
const DelegateMixinImplementation = superclass =>
|
const DelegateMixinImplementation = superclass =>
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { dedupeMixin } from '@open-wc/dedupe-mixin';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {DisabledMixin}
|
* @type {DisabledMixin}
|
||||||
* @param {import('@open-wc/dedupe-mixin').Constructor<import('lit-element').LitElement>} superclass
|
* @param {import('@open-wc/dedupe-mixin').Constructor<import('../index').LitElement>} superclass
|
||||||
*/
|
*/
|
||||||
const DisabledMixinImplementation = superclass =>
|
const DisabledMixinImplementation = superclass =>
|
||||||
// eslint-disable-next-line no-shadow
|
// eslint-disable-next-line no-shadow
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import { DisabledMixin } from './DisabledMixin.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {DisabledWithTabIndexMixin}
|
* @type {DisabledWithTabIndexMixin}
|
||||||
* @param {import('@open-wc/dedupe-mixin').Constructor<import('lit-element').LitElement>} superclass
|
* @param {import('@open-wc/dedupe-mixin').Constructor<import('../index').LitElement>} superclass
|
||||||
*/
|
*/
|
||||||
const DisabledWithTabIndexMixinImplementation = superclass =>
|
const DisabledWithTabIndexMixinImplementation = superclass =>
|
||||||
// eslint-disable-next-line no-shadow
|
// eslint-disable-next-line no-shadow
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import '../lion-dialog.js';
|
||||||
/**
|
/**
|
||||||
|
|
||||||
* @typedef {import('../src/LionDialog').LionDialog} LionDialog
|
* @typedef {import('../src/LionDialog').LionDialog} LionDialog
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionDialog>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionDialog>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import '../lion-form.js';
|
||||||
/**
|
/**
|
||||||
|
|
||||||
* @typedef {import('../src/LionForm').LionForm} LionForm
|
* @typedef {import('../src/LionForm').LionForm} LionForm
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionForm>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionForm>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { render } from '@lion/core';
|
||||||
* Helper to render a lit TemplateResult as an offline-created DOM node
|
* Helper to render a lit TemplateResult as an offline-created DOM node
|
||||||
* Make sure that the top-most element in the template has no siblings,
|
* Make sure that the top-most element in the template has no siblings,
|
||||||
* as they won't be taken into account. We only return firstElementChild.
|
* as they won't be taken into account. We only return firstElementChild.
|
||||||
* @param {import('lit-html').TemplateResult} litHtmlTemplate
|
* @param {import('@lion/core').TemplateResult} litHtmlTemplate
|
||||||
*/
|
*/
|
||||||
export const renderLitAsNode = litHtmlTemplate => {
|
export const renderLitAsNode = litHtmlTemplate => {
|
||||||
const offlineRenderContainer = document.createElement('div');
|
const offlineRenderContainer = document.createElement('div');
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { css, html, LitElement, render } from '@lion/core';
|
import { css, html, LitElement, render } from '@lion/core';
|
||||||
|
|
||||||
/** @typedef {import('lit-html').TemplateResult} TemplateResult */
|
/** @typedef {import('@lion/core').TemplateResult} TemplateResult */
|
||||||
|
|
||||||
export class SbActionLogger extends LitElement {
|
export class SbActionLogger extends LitElement {
|
||||||
static get properties() {
|
static get properties() {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import '../../sb-action-logger.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/SbActionLogger').SbActionLogger} SbActionLogger
|
* @typedef {import('../src/SbActionLogger').SbActionLogger} SbActionLogger
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult|string) => Promise<SbActionLogger>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult|string) => Promise<SbActionLogger>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
* @typedef {import('lit-html').nothing} nothing
|
* @typedef {import('@lion/core').nothing} nothing
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export class IconManager {
|
export class IconManager {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import heartSvg from './heart.svg.js';
|
||||||
/**
|
/**
|
||||||
* @typedef {(strings: TemplateStringsArray, ... expr: string[]) => string} TaggedTemplateLiteral
|
* @typedef {(strings: TemplateStringsArray, ... expr: string[]) => string} TaggedTemplateLiteral
|
||||||
* @typedef {import('../src/LionIcon').LionIcon} LionIcon
|
* @typedef {import('../src/LionIcon').LionIcon} LionIcon
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionIcon>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionIcon>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import '../lion-input-date.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionInputDate').LionInputDate} LionInputDate
|
* @typedef {import('../src/LionInputDate').LionInputDate} LionInputDate
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionInputDate>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionInputDate>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import { LionInputDatepicker } from '../src/LionInputDatepicker.js';
|
||||||
import { DatepickerInputObject } from '../test-helpers.js';
|
import { DatepickerInputObject } from '../test-helpers.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionInputDatepicker>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionInputDatepicker>} */ (_fixture);
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import '../lion-input-email.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionInputEmail').LionInputEmail} LionInputEmail
|
* @typedef {import('../src/LionInputEmail').LionInputEmail} LionInputEmail
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionInputEmail>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionInputEmail>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import '../lion-input-iban.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionInputIban').LionInputIban} LionInputIban
|
* @typedef {import('../src/LionInputIban').LionInputIban} LionInputIban
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionInputIban>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionInputIban>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { LionInput } from '@lion/input';
|
||||||
import { formatNumber, LocalizeMixin } from '@lion/localize';
|
import { formatNumber, LocalizeMixin } from '@lion/localize';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('lit-element').CSSResult} CSSResult
|
* @typedef {import('@lion/core').CSSResult} CSSResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import '../lion-input-range.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionInputRange').LionInputRange} LionInputRange
|
* @typedef {import('../src/LionInputRange').LionInputRange} LionInputRange
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionInputRange>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionInputRange>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import { IsNumber, MinNumber, MaxNumber } from '@lion/form-core';
|
||||||
*
|
*
|
||||||
* @customElement lion-input-stepper
|
* @customElement lion-input-stepper
|
||||||
*/
|
*/
|
||||||
|
// @ts-expect-error false positive, lit-element already merges properties for you
|
||||||
export class LionInputStepper extends LionInput {
|
export class LionInputStepper extends LionInput {
|
||||||
static get styles() {
|
static get styles() {
|
||||||
return [
|
return [
|
||||||
|
|
@ -256,7 +257,7 @@ export class LionInputStepper extends LionInput {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the decrementor button sign template
|
* Get the decrementor button sign template
|
||||||
* @returns {String|import('lit-element').TemplateResult}
|
* @returns {String|import('@lion/core').TemplateResult}
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line class-methods-use-this
|
// eslint-disable-next-line class-methods-use-this
|
||||||
_decrementorSignTemplate() {
|
_decrementorSignTemplate() {
|
||||||
|
|
@ -265,7 +266,7 @@ export class LionInputStepper extends LionInput {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the incrementor button sign template
|
* Get the incrementor button sign template
|
||||||
* @returns {String|import('lit-element').TemplateResult}
|
* @returns {String|import('@lion/core').TemplateResult}
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line class-methods-use-this
|
// eslint-disable-next-line class-methods-use-this
|
||||||
_incrementorSignTemplate() {
|
_incrementorSignTemplate() {
|
||||||
|
|
@ -274,7 +275,7 @@ export class LionInputStepper extends LionInput {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the increment button template
|
* Get the increment button template
|
||||||
* @returns {import('lit-element').TemplateResult}
|
* @returns {import('@lion/core').TemplateResult}
|
||||||
*/
|
*/
|
||||||
_decrementorTemplate() {
|
_decrementorTemplate() {
|
||||||
return html`
|
return html`
|
||||||
|
|
@ -292,7 +293,7 @@ export class LionInputStepper extends LionInput {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the decrement button template
|
* Get the decrement button template
|
||||||
* @returns {import('lit-element').TemplateResult}
|
* @returns {import('@lion/core').TemplateResult}
|
||||||
*/
|
*/
|
||||||
_incrementorTemplate() {
|
_incrementorTemplate() {
|
||||||
return html`
|
return html`
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import '../lion-input-stepper.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionInputStepper').LionInputStepper} LionInputStepper
|
* @typedef {import('../src/LionInputStepper').LionInputStepper} LionInputStepper
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionInputStepper>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionInputStepper>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import '../lion-listbox.js';
|
||||||
* @typedef {import('../src/LionListbox').LionListbox} LionListbox
|
* @typedef {import('../src/LionListbox').LionListbox} LionListbox
|
||||||
* @typedef {import('../src/LionOption').LionOption} LionOption
|
* @typedef {import('../src/LionOption').LionOption} LionOption
|
||||||
* @typedef {import('@lion/select-rich').LionSelectInvoker} LionSelectInvoker
|
* @typedef {import('@lion/select-rich').LionSelectInvoker} LionSelectInvoker
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionListbox>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionListbox>} */ (_fixture);
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { LitElement, html, css } from '@lion/core';
|
||||||
import { LocalizeMixin } from '@lion/localize';
|
import { LocalizeMixin } from '@lion/localize';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import '../lion-pagination.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionPagination').LionPagination} LionPagination
|
* @typedef {import('../src/LionPagination').LionPagination} LionPagination
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionPagination>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionPagination>} */ (_fixture);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import '../lion-radio.js';
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionRadioGroup').LionRadioGroup} LionRadioGroup
|
* @typedef {import('../src/LionRadioGroup').LionRadioGroup} LionRadioGroup
|
||||||
* @typedef {import('../src/LionRadio').LionRadio} LionRadio
|
* @typedef {import('../src/LionRadio').LionRadio} LionRadio
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionRadioGroup>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionRadioGroup>} */ (_fixture);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import '../lion-steps.js';
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionSteps').LionSteps} LionSteps
|
* @typedef {import('../src/LionSteps').LionSteps} LionSteps
|
||||||
* @typedef {import('../src/LionStep').LionStep} LionStep
|
* @typedef {import('../src/LionStep').LionStep} LionStep
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
* @typedef {{[key: string]: ?}} UnknownData
|
* @typedef {{[key: string]: ?}} UnknownData
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import '../lion-switch-button.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionSwitchButton').LionSwitchButton} LionSwitchButton
|
* @typedef {import('../src/LionSwitchButton').LionSwitchButton} LionSwitchButton
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionSwitchButton>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionSwitchButton>} */ (_fixture);
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import '../lion-switch.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionSwitch').LionSwitch} LionSwitch
|
* @typedef {import('../src/LionSwitch').LionSwitch} LionSwitch
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fixture = /** @type {(arg: TemplateResult) => Promise<LionSwitch>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult) => Promise<LionSwitch>} */ (_fixture);
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import '../lion-textarea.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../src/LionTextarea').LionTextarea} LionTextarea
|
* @typedef {import('../src/LionTextarea').LionTextarea} LionTextarea
|
||||||
* @typedef {import('lit-html').TemplateResult} TemplateResult
|
* @typedef {import('@lion/core').TemplateResult} TemplateResult
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionTextarea>} */ (_fixture);
|
const fixture = /** @type {(arg: TemplateResult|string) => Promise<LionTextarea>} */ (_fixture);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue