Core API Overview > @adpt/core > useMethod
useMethod() 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.
Signature:
export declare function useMethod<OverrideReturn, H extends Handle = Handle, Instance = HandleInstanceType<H>, MethodName extends MethodNames<Instance> = MethodNames<Instance>>(hand: Handle | null, method: MethodName): OverrideReturn | undefined;
Parameters
| Parameter | Type | Description |
|---|---|---|
| hand | Handle | null | |
| method | MethodName |
Returns:
OverrideReturn | undefined