Skip to main content

ClaimNFTReturnType type

This feature is currently in beta and may change based on feedback that we receive.

The return type of the useClaimNFT() hook.

Signature:

export declare type ClaimNFTReturnType<TContract extends DropContract> =
TContract extends Erc721
? Awaited<ReturnType<TContract["claimTo"]>>
: TContract extends Erc1155
? Awaited<ReturnType<TContract["claimTo"]>>
: never;

References: DropContract