diff --git a/src/ComboBox/ComboBox.svelte b/src/ComboBox/ComboBox.svelte index 3ebc33fc..70170f40 100644 --- a/src/ComboBox/ComboBox.svelte +++ b/src/ComboBox/ComboBox.svelte @@ -11,7 +11,7 @@ /** * Override the display of a combobox item - * @type {(item: ComboBoxItem) => string;} [itemToString = (item: ComboBoxItem) => string;] + * @type {(item: ComboBoxItem) => string} [itemToString = (item: ComboBoxItem) => string] */ export let itemToString = (item) => item.text || item.id; @@ -89,7 +89,7 @@ /** * Override the default translation ids - * @type {(id: any) => string;} [translateWithId] + * @type {(id: any) => string} [translateWithId] */ export let translateWithId = undefined; diff --git a/src/DataTable/TableHeader.svelte b/src/DataTable/TableHeader.svelte index dc5d216c..0c52e1e9 100644 --- a/src/DataTable/TableHeader.svelte +++ b/src/DataTable/TableHeader.svelte @@ -7,7 +7,7 @@ /** * Override the default id translations - * @type {() => string;} [translateWithId = () => "";] + * @type {() => string} [translateWithId = () => ""] */ export let translateWithId = () => ""; diff --git a/src/Dropdown/Dropdown.svelte b/src/Dropdown/Dropdown.svelte index 4082a39f..9cc881ba 100644 --- a/src/Dropdown/Dropdown.svelte +++ b/src/Dropdown/Dropdown.svelte @@ -13,7 +13,7 @@ /** * Override the display of a dropdown item - * @type {(item: DropdownItem) => string;} [itemToString = (item: DropdownItem) => DropdownItemText | DropdownItemId;] + * @type {(item: DropdownItem) => string} [itemToString = (item: DropdownItem) => DropdownItemText | DropdownItemId] */ export let itemToString = (item) => item.text || item.id; @@ -91,7 +91,7 @@ /** * Override the default translation ids - * @type {(id: any) => string;} [translateWithId] + * @type {(id: any) => string} [translateWithId] */ export let translateWithId = undefined; diff --git a/src/FileUploader/FileUploader.svelte b/src/FileUploader/FileUploader.svelte index c1223a34..f9e67a2a 100644 --- a/src/FileUploader/FileUploader.svelte +++ b/src/FileUploader/FileUploader.svelte @@ -25,7 +25,7 @@ /** * Override the default behavior of clearing the array of uploaded files - * @type {() => any;} [clearFiles = () => void;] + * @type {() => any} [clearFiles = () => void] */ export const clearFiles = () => { files = []; diff --git a/src/FileUploader/FileUploaderDropContainer.svelte b/src/FileUploader/FileUploaderDropContainer.svelte index 9a21738b..e5ad31dc 100644 --- a/src/FileUploader/FileUploaderDropContainer.svelte +++ b/src/FileUploader/FileUploaderDropContainer.svelte @@ -18,7 +18,7 @@ /** * Override the default behavior of validating uploaded files * The default behavior does not validate files - * @type {(files: Files) => Files} [validateFiles = (files: Files) => Files;] + * @type {(files: Files) => Files} [validateFiles = (files: Files) => Files] */ export let validateFiles = (files) => files; diff --git a/src/Grid/Column.svelte b/src/Grid/Column.svelte index 1c476c16..d1fffb87 100644 --- a/src/Grid/Column.svelte +++ b/src/Grid/Column.svelte @@ -32,7 +32,7 @@ /** * @typedef {boolean | number} ColumnSize - * @typedef {{span?: ColumnSize: offset: number;}} ColumnSizeDescriptor + * @typedef {{span?: ColumnSize; offset: number;}} ColumnSizeDescriptor * @typedef {ColumnSize | ColumnSizeDescriptor} ColumnBreakpoint */ diff --git a/src/ListBox/ListBoxField.svelte b/src/ListBox/ListBoxField.svelte index 81d71033..d97397ce 100644 --- a/src/ListBox/ListBoxField.svelte +++ b/src/ListBox/ListBoxField.svelte @@ -30,7 +30,7 @@ /** * Override the default translation ids - * @type {(id: ListBoxFieldTranslationId) => string;} [translateWithId = (id) => string;] + * @type {(id: ListBoxFieldTranslationId) => string} [translateWithId = (id) => string] */ export let translateWithId = (id) => defaultTranslations[id]; diff --git a/src/ListBox/ListBoxMenuIcon.svelte b/src/ListBox/ListBoxMenuIcon.svelte index 5ccd3fc4..82d9437b 100644 --- a/src/ListBox/ListBoxMenuIcon.svelte +++ b/src/ListBox/ListBoxMenuIcon.svelte @@ -18,7 +18,7 @@ /** * Override the default translation ids - * @type {(id: ListBoxMenuIconTranslationId) => string;} [translateWithId = (id) => string;] + * @type {(id: ListBoxMenuIconTranslationId) => string} [translateWithId = (id) => string] */ export let translateWithId = (id) => defaultTranslations[id]; diff --git a/src/ListBox/ListBoxSelection.svelte b/src/ListBox/ListBoxSelection.svelte index 05961442..9afe68dc 100644 --- a/src/ListBox/ListBoxSelection.svelte +++ b/src/ListBox/ListBoxSelection.svelte @@ -1,7 +1,7 @@