Millennium
SteamClientHomebrewSDK / client/src / Millennium
Type Alias: Millennium
type Millennium = {
AddWindowCreateHook?: (callback) => void;
callServerMethod: (methodName, kwargs?) => Promise<any>;
exposeObj?: <T>(obj) => any;
findElement: (privateDocument, querySelector, timeOut?) => Promise<NodeListOf<Element>>;
};
Defined in: typescript-packages/client/src/millennium-api.ts:7
Properties
AddWindowCreateHook()?
optional AddWindowCreateHook: (callback) => void;
Defined in: typescript-packages/client/src/millennium-api.ts:25
Parameters
callback
(context
) => void
Returns
void
callServerMethod()
callServerMethod: (methodName, kwargs?) => Promise<any>;
Defined in: typescript-packages/client/src/millennium-api.ts:22
Call a method on the backend
Parameters
methodName
string
kwargs?
object
Returns
Promise
<any
>
Deprecated
Use callable
instead.
Example usage:
// before
const result = await Millennium.callServerMethod('methodName', { arg1: 'value' });
// after
const method = callable<[{ arg1: string }]>("methodName");
const result1 = await method({ arg1: 'value1' });
const result2 = await method({ arg1: 'value2' });
exposeObj()?
optional exposeObj: <T>(obj) => any;
Defined in: typescript-packages/client/src/millennium-api.ts:24
Type Parameters
T
T
extends object