modelenceQuery<Defined in: index.ts:34 Creates query options for use with TanStack Query’s useQuery hook.T
>(methodName
,args
):object
Type Parameter | Default type | Description |
---|---|---|
T | unknown | The expected return type of the query |
Parameter | Type | Description |
---|---|---|
methodName | string | The name of the method to query |
args | Args | Optional arguments to pass to the method |
object
Query options object for TanStack Query’s useQuery
Name | Type | Defined in |
---|---|---|
queryFn() | () => Promise <T > | index.ts:40 |
queryKey | (string | Args )[] | index.ts:39 |