Docs

MintNFTReturnType

The return type of the useMintNFT hook.

type MintNFTReturnType<TContract> = TContract extends Erc721
? Awaited<ReturnType<Erc721["mintTo"]>>
: TContract extends Erc1155
? Awaited<ReturnType<Erc1155["mintTo"]>>
: never;