Interface: UseAddSubname<T>
Interface defining the parameters needed to add a subname.
Type parameters
Name | Type | Description |
---|---|---|
T | any | The type of additional parameters that can be passed to the claim subname mutation, extending the base request. |
Properties
addSubname
• addSubname: (params
: T
& BaseAddSubnameRequest
) => Promise
<SubnameAddResponse
>
The function to add a subname.
Type declaration
▸ (params
): Promise
<SubnameAddResponse
>
Parameters
Name | Type |
---|---|
params | T & BaseAddSubnameRequest |
Returns
Promise
<SubnameAddResponse
>
Defined in
packages/@justaname.id/react/src/lib/hooks/useAddSubname.ts:24
addSubnamePending
• addSubnamePending: boolean
Indicates if the mutation is currently pending.
Defined in
packages/@justaname.id/react/src/lib/hooks/useAddSubname.ts:27