Skip to content

Commit

Permalink
shared: update onRpc remark
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Oct 2, 2023
1 parent 30ccf03 commit 3403e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2793,7 +2793,7 @@ declare module "alt-client" {
* @param rpcName Name of the RPC
* @param listener Listener that should be added.
*
* @remarks The return value of the listener function determines the response clients will receive. When returning multiple values, use an array. Throwing an exception will cause the promise on the client to throw an exception which has to be caught.
* @remarks The return value of the listener function determines the response clients will receive. When returning multiple values, use an array. Returning an Error object will cause the promise on the server to throw an exception which has to be caught.
*
* @alpha
*/
Expand Down
2 changes: 1 addition & 1 deletion server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3120,7 +3120,7 @@ declare module "alt-server" {
* return [1, 2, [10, 13, 19], false, "hey there"];
* });
* ```
* @remarks The return value of the listener function determines the response clients will receive. When returning multiple values, use an array. Throwing an exception will cause the promise on the client to throw an exception which has to be caught.
* @remarks The return value of the listener function determines the response clients will receive. When returning multiple values, use an array. Returning an Error object will cause the promise on the client to throw an exception which has to be caught.
*
* @alpha
*/
Expand Down

0 comments on commit 3403e1f

Please sign in to comment.