Skip to content

Commit 27094c9

Browse files
committed
chore: update type definitions for function parameters in ResourceListTable and ThreeDotsMenu for improved type safety
1 parent 551b4f5 commit 27094c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

adminforth/spa/src/components/ResourceListTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ watch(() => props.rows, (newRows) => {
394394
columnWidths.value = newRows || !headerRefs.value ? [] : [48, ...headerRefs.value.map((el: any) => el.offsetWidth)];
395395
});
396396
397-
function addToCheckedValues(id: any) {
397+
function addToCheckedValues(id: string) {
398398
if (checkboxesInternal.value.includes(id)) {
399399
checkboxesInternal.value = checkboxesInternal.value.filter((item) => item !== id);
400400
} else {

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async function handleActionClick(action: AdminForthActionInput) {
147147
}
148148
}
149149
150-
function startBulkAction(actionId: any) {
150+
function startBulkAction(actionId: string) {
151151
adminforth.list.closeThreeDotsDropdown();
152152
emit('startBulkAction', actionId);
153153
}

adminforth/spa/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import tailwindcss from 'tailwindcss';
1111
* @param {number} startPort - The starting port to check.
1212
* @returns {Promise<number>} - A promise that resolves with the next available port.
1313
*/
14-
async function getNextAvailablePort(startPort: any) {
14+
async function getNextAvailablePort(startPort: number | undefined) {
1515
return await portfinder.getPortPromise({ port: startPort });
1616
};
1717

0 commit comments

Comments
 (0)