diff --git a/client/index.d.ts b/client/index.d.ts index c865c410..1b082e8b 100644 --- a/client/index.d.ts +++ b/client/index.d.ts @@ -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 */ diff --git a/server/index.d.ts b/server/index.d.ts index a7b49ce0..2ff0c657 100644 --- a/server/index.d.ts +++ b/server/index.d.ts @@ -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 */