callable
SteamClientHomebrewSDK / client/src / callable
Variable: callable()
const callable: <Args, T>(route) => (...args) => Promise<T>;
Defined in: typescript-packages/client/src/millennium-api.ts:43
Make reusable IPC call declarations
frontend:
const method = callable<[{ arg1: string }]>("methodName"); // declare the method
method({ arg1: 'value' }); // call the method
backend:
def methodName(arg1: str):
pass
Type Parameters
Args
Args
extends any
[] = []
T
T
= IPC_types
Parameters
route
string
Returns
(...args): Promise<T>;
Parameters
args
...Args
Returns
Promise
<T
>