Skip to main content

Interface: UseAddSubname<T>

Interface defining the parameters needed to add a subname.

Type parameters

NameTypeDescription
TanyThe 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
NameType
paramsT & 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