From 6d8a004f4a4953955a0e9d4b6c87500c6a943537 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 7 Jan 2024 10:44:18 +1100 Subject: [PATCH] Fixed `Call.ByID` JSDoc + TS type --- v3/internal/runtime/desktop/@wailsio/runtime/src/calls.js | 2 +- v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.js b/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.js index 7e2ec038..58de76c5 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.js +++ b/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.js @@ -94,7 +94,7 @@ export function ByName(name, ...args) { /** * Calls a method by its ID with the specified arguments. * - * @param {string} methodID - The ID of the method to call. + * @param {number} methodID - The ID of the method to call. * @param {...*} args - The arguments to pass to the method. * @return {*} - The result of the method call. */ diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts index 815f4ad7..ccd52abe 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts @@ -19,11 +19,11 @@ export function ByName(name: string, ...args: any[]): any; /** * Calls a method by its ID with the specified arguments. * - * @param {string} methodID - The ID of the method to call. + * @param {number} methodID - The ID of the method to call. * @param {...*} args - The arguments to pass to the method. * @return {*} - The result of the method call. */ -export function ByID(methodID: string, ...args: any[]): any; +export function ByID(methodID: number, ...args: any[]): any; /** * Calls a method on a plugin. *