diff --git a/docs/react.uselazymint.md b/docs/react.uselazymint.md index bc26dde..403765a 100644 --- a/docs/react.uselazymint.md +++ b/docs/react.uselazymint.md @@ -12,7 +12,7 @@ Use this to lazy mint a batch of NFTs on your [DropContract](./react.dropcontrac Signature: ```typescript -export declare function useLazyMint(contract: RequiredParam, onProgress?: (progress: UploadProgressEvent) => void): import("@tanstack/react-query").UseMutationResult(contract: RequiredParam, onProgress?: (progress: UploadProgressEvent) => void): import("@tanstack/react-query").UseMutationResult(contract: Required | Parameter | Type | Description | | --- | --- | --- | -| contract | [RequiredParam](./react.requiredparam.md)<TContract> | an instance of a with the drop extension | +| contract | [RequiredParam](./react.requiredparam.md)<TContract> | an instance of a [NFTContract](./react.nftcontract.md) with the drop extension | | onProgress | (progress: UploadProgressEvent) => void | (Optional) an optional callback that will be called with the progress of the upload | Returns: diff --git a/etc/react.api.md b/etc/react.api.md index 6a7c20f..7bba358 100644 --- a/etc/react.api.md +++ b/etc/react.api.md @@ -30,7 +30,7 @@ import { EditionDrop } from '@thirdweb-dev/sdk/dist/browser'; import { Erc1155 } from '@thirdweb-dev/sdk/dist/browser'; import type { Erc1155Mintable } from '@thirdweb-dev/sdk/dist/browser'; import type { Erc20 } from '@thirdweb-dev/sdk/dist/browser'; -import { Erc721 } from '@thirdweb-dev/sdk/dist/browser'; +import type { Erc721 } from '@thirdweb-dev/sdk/dist/browser'; import type { Erc721Mintable } from '@thirdweb-dev/sdk/dist/browser'; import type { EventQueryFilter } from '@thirdweb-dev/sdk/dist/browser'; import { FetchStatus } from '@tanstack/react-query'; @@ -1375,7 +1375,7 @@ address: WalletAddress; export function useIsAddressRole(contract: RequiredParam, role: RolesForContract, walletAddress: RequiredParam): boolean; // @beta -export function useLazyMint(contract: RequiredParam, onProgress?: (progress: UploadProgressEvent) => void): UseMutationResult(contract: RequiredParam, onProgress?: (progress: UploadProgressEvent) => void): UseMutationResult( /** * Use this to lazy mint a batch of NFTs on your {@link DropContract} * - * @param contract - an instance of a {@link ERC721} with the drop extension + * @param contract - an instance of a {@link NFTContract} with the drop extension * @param onProgress - an optional callback that will be called with the progress of the upload * @returns a mutation object that can be used to lazy mint a batch of NFTs * @beta */ -export function useLazyMint( +export function useLazyMint( contract: RequiredParam, onProgress?: (progress: UploadProgressEvent) => void, ) { diff --git a/yarn.lock b/yarn.lock index 244a322..5dee9ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1082,10 +1082,10 @@ resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts/-/contracts-3.0.3.tgz#ba83b7e28ab01a88358de479cf98cddbf835ff56" integrity sha512-TQRrML5SwbTb0VA1nu7VLxqIXrqMfvaXOBFT//yA9Jdd7GNsG4zSQHlHpkU4KWG1r766poG/AuXwz8KQ1A9IBg== -"@thirdweb-dev/sdk@^2.3.25-3": - version "2.3.33" - resolved "https://registry.yarnpkg.com/@thirdweb-dev/sdk/-/sdk-2.3.33.tgz#85d35ab3cb52cde2dc825e0d816742efa6b16d1e" - integrity sha512-lYMBi2L02U/1LA5XDAQCHb5vT9LGVlsRUTtivWt9jrEmq/vMZB6tPAbGcu7CFZOJWWkajuw83eWu3xMNNEnRog== +"@thirdweb-dev/sdk@^2.3.35-1": + version "2.3.35-1" + resolved "https://registry.yarnpkg.com/@thirdweb-dev/sdk/-/sdk-2.3.35-1.tgz#efd3eb869cde10999f05c252eeeedd5d4430fed1" + integrity sha512-A4uCbpZmj4sYXXA61GuG+M+aNyc/xb5fwX0tmFCUj47MENcmzfNM4oAew//lYp0EocIjVrrX6mchjL4tJP+nSA== dependencies: "@thirdweb-dev/contracts" "^3.0.0" "@web-std/file" "^3.0.0"