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. *