From ab1a0fddc95453715074af6baf9df51f17b2306c Mon Sep 17 00:00:00 2001 From: simonmilord Date: Tue, 18 Jun 2024 12:23:45 -0400 Subject: [PATCH] fixed type --- .../force-app/main/default/lwc/quanticSort/quanticSort.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/quantic/force-app/main/default/lwc/quanticSort/quanticSort.js b/packages/quantic/force-app/main/default/lwc/quanticSort/quanticSort.js index 081ea848f9d..1d2ea79f63b 100644 --- a/packages/quantic/force-app/main/default/lwc/quanticSort/quanticSort.js +++ b/packages/quantic/force-app/main/default/lwc/quanticSort/quanticSort.js @@ -14,8 +14,9 @@ import {LightningElement, track, api} from 'lwc'; /** @typedef {import("coveo").SearchStatus} SearchStatus */ /** @typedef {import("coveo").SearchEngine} SearchEngine */ /** @typedef {import("coveo").SortCriterion} SortCriterion */ + /** - * @typedef SortOption + * @typedef {Object} SortOption * @property {string} label * @property {string} value * @property {SortCriterion} criterion @@ -160,18 +161,17 @@ export default class QuanticSort extends LightningElement { * @returns {SortOption[]} The specified custom sort options. */ get customSortOptions() { + /** @type {SortOption[]} */ + // @ts-ignore const elements = Array.from(this.querySelectorAll('c-quantic-sort-option')); if (elements.length === 0) { return []; } return elements.map((element) => { return { - // @ts-ignore label: element.label, - // @ts-ignore value: element.value, criterion: { - // @ts-ignore by: element.criterion.by, // @ts-ignore order: element.criterion.order,