Skip to content

Commit

Permalink
Match types for User#callFunction implementation across platforms
Browse files Browse the repository at this point in the history
The unifies the call signature of User#callFunction accross all documentation
and platforms.
  • Loading branch information
takameyer committed Aug 30, 2022
1 parent 343d668 commit 4331346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,10 +871,10 @@ class User {
/**
* Calls the named server function as this user.
* @param {string} name - name of the function to call
* @param {any[]} args = [] - list of arguments to pass
* @param {...*} [args] - arguments to pass to the function
* @return {Promise<any>} - resolves when the function terminates.
*/
callFunction(name, args) {}
callFunction(name, ...args) {}

/**
* Convenience wrapper around `callFunction(name, [args])`
Expand Down

0 comments on commit 4331346

Please sign in to comment.