Core API Overview > @adpt/core > callInstanceMethod
callInstanceMethod() function
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Immediately call method on instance pointed to by handle
Signature:
export declare function callInstanceMethod<T = any>(hand: Handle, def: T, methodName: string, ...args: any[]): T;
Parameters
Parameter | Type | Description |
---|---|---|
hand | Handle | |
def | T | |
methodName | string | |
args | any[] |
Returns:
T