Fixed Call.ByID JSDoc + TS type

This commit is contained in:
Lea Anthony
2024-01-07 10:44:18 +11:00
parent 1dae9f613f
commit 6d8a004f4a
2 changed files with 3 additions and 3 deletions
@@ -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.
*/
@@ -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.
*