From c4ab3399da905cdb366cfab28edf73626bee545b Mon Sep 17 00:00:00 2001 From: jakehobbs Date: Tue, 16 Sep 2025 10:52:36 -0700 Subject: [PATCH 1/4] docs: fix example imports & twoslash --- .../src/hooks/useAlchemyAccountContext.ts | 2 +- account-kit/react/src/hooks/useAuthError.ts | 2 +- account-kit/react/src/hooks/useCallsStatus.ts | 2 +- .../react/src/hooks/useGrantPermissions.ts | 2 +- .../react/src/hooks/usePrepareCalls.ts | 4 +++- account-kit/react/src/hooks/useSendCalls.ts | 4 +++- .../react/src/hooks/useSendPreparedCalls.ts | 4 +++- .../react/src/hooks/useSmartWalletClient.ts | 2 +- .../react/src/hooks/useSolanaConnection.ts | 7 +++--- .../react/src/hooks/useSolanaSignMessage.ts | 8 ++++--- .../react/src/hooks/useSolanaTransaction.ts | 24 +++++++++++-------- .../react/src/hooks/useSolanaWallet.ts | 2 +- account-kit/react/src/hooks/useUiConfig.tsx | 2 +- account-kit/react/src/hooks/useUser.ts | 1 - .../react/src/hooks/useWaitForCallsStatus.ts | 2 +- .../react/hooks/useAlchemyAccountContext.mdx | 2 +- .../account-kit/react/hooks/useAuthError.mdx | 2 +- .../react/hooks/useCallsStatus.mdx | 2 +- .../react/hooks/useGrantPermissions.mdx | 2 +- .../react/hooks/usePrepareCalls.mdx | 4 +++- .../account-kit/react/hooks/useSendCalls.mdx | 4 +++- .../react/hooks/useSendPreparedCalls.mdx | 4 +++- .../react/hooks/useSmartWalletClient.mdx | 2 +- .../react/hooks/useSolanaConnection.mdx | 4 +++- .../react/hooks/useSolanaSignMessage.mdx | 5 +++- .../react/hooks/useSolanaTransaction.mdx | 17 +++++++------ .../react/hooks/useSolanaWallet.mdx | 2 +- .../account-kit/react/hooks/useUiConfig.mdx | 2 +- .../react/hooks/useWaitForCallsStatus.mdx | 2 +- 29 files changed, 74 insertions(+), 48 deletions(-) diff --git a/account-kit/react/src/hooks/useAlchemyAccountContext.ts b/account-kit/react/src/hooks/useAlchemyAccountContext.ts index bbff78ee95..e9ec2ed751 100644 --- a/account-kit/react/src/hooks/useAlchemyAccountContext.ts +++ b/account-kit/react/src/hooks/useAlchemyAccountContext.ts @@ -8,7 +8,7 @@ import type { AlchemyAccountContextProps } from "../AlchemyAccountContext.js"; * This hook is meant to be consumed by other hooks exported by this package. * * @example - * ```tsx + * ```ts twoslash * import { useAlchemyAccountContext } from "@account-kit/react"; * * const { config, queryClient } = useAlchemyAccountContext(); diff --git a/account-kit/react/src/hooks/useAuthError.ts b/account-kit/react/src/hooks/useAuthError.ts index b2cc8a9f24..3fa032b036 100644 --- a/account-kit/react/src/hooks/useAuthError.ts +++ b/account-kit/react/src/hooks/useAuthError.ts @@ -8,7 +8,7 @@ export type UseAuthErrorResult = Error | undefined; * @returns {UseAuthErrorResult} the current Error object * * @example - * ```tsx twoslash + * ```ts twoslash * import { useAuthError } from "@account-kit/react"; * * const error = useAuthError(); diff --git a/account-kit/react/src/hooks/useCallsStatus.ts b/account-kit/react/src/hooks/useCallsStatus.ts index 5ea35d704a..60cbdc273d 100644 --- a/account-kit/react/src/hooks/useCallsStatus.ts +++ b/account-kit/react/src/hooks/useCallsStatus.ts @@ -31,7 +31,7 @@ export type UseCallsStatusResult = UseQueryResult; * The status indicates whether the batch of calls has been processed, confirmed, or failed on-chain. * * @example - * ```tsx + * ```tsx twoslash * import { useCallsStatus } from "@account-kit/react"; * * function MyComponent() { diff --git a/account-kit/react/src/hooks/useGrantPermissions.ts b/account-kit/react/src/hooks/useGrantPermissions.ts index 52ad070ef6..7c042a7147 100644 --- a/account-kit/react/src/hooks/useGrantPermissions.ts +++ b/account-kit/react/src/hooks/useGrantPermissions.ts @@ -57,7 +57,7 @@ export type UseGrantPermissionsResult = { * Returns an error if called with an EOA wallet connection. * * @example - * ```tsx + * ```tsx twoslash * import { useGrantPermissions, useSmartAccountClient } from "@account-kit/react"; * * function PermissionsComponent() { diff --git a/account-kit/react/src/hooks/usePrepareCalls.ts b/account-kit/react/src/hooks/usePrepareCalls.ts index 1ea414fead..57f81cd2e4 100644 --- a/account-kit/react/src/hooks/usePrepareCalls.ts +++ b/account-kit/react/src/hooks/usePrepareCalls.ts @@ -65,7 +65,9 @@ export type UsePrepareCallsResult = { * - `error`: Error from the last failed call preparation, if any * * @example - * ```tsx + * ```ts twoslash + * import { usePrepareCalls } from "@account-kit/react"; + * * const { prepareCalls, prepareCallsAsync, isPreparingCalls, error } = usePrepareCalls(); * * // Prepare calls diff --git a/account-kit/react/src/hooks/useSendCalls.ts b/account-kit/react/src/hooks/useSendCalls.ts index 0eeacc3446..a2d439a6ed 100644 --- a/account-kit/react/src/hooks/useSendCalls.ts +++ b/account-kit/react/src/hooks/useSendCalls.ts @@ -85,7 +85,9 @@ export type UseSendCallsResult< * - `error`: Error from the last failed call execution, if any * * @example - * ```tsx + * ```ts twoslash + * import { useSendCalls } from "@account-kit/react"; + * * const { sendCalls, sendCallsAsync, isSendingCalls, error } = useSendCalls(); * * // Send a single call diff --git a/account-kit/react/src/hooks/useSendPreparedCalls.ts b/account-kit/react/src/hooks/useSendPreparedCalls.ts index 13347cc62f..290d2fab85 100644 --- a/account-kit/react/src/hooks/useSendPreparedCalls.ts +++ b/account-kit/react/src/hooks/useSendPreparedCalls.ts @@ -65,7 +65,9 @@ export type UseSendPreparedCallsResult = { * - `error`: Error from the last failed prepared call execution, if any * * @example - * ```tsx + * ```ts twoslash + * import { useSendPreparedCalls } from "@account-kit/react"; + * * const { sendPreparedCalls, sendPreparedCallsAsync, isSendingPreparedCalls, error } = useSendPreparedCalls(); * * // Send prepared calls diff --git a/account-kit/react/src/hooks/useSmartWalletClient.ts b/account-kit/react/src/hooks/useSmartWalletClient.ts index 942d629d95..1ee57a5a8d 100644 --- a/account-kit/react/src/hooks/useSmartWalletClient.ts +++ b/account-kit/react/src/hooks/useSmartWalletClient.ts @@ -16,7 +16,7 @@ import { useAlchemyAccountContext } from "./useAlchemyAccountContext.js"; * The hook automatically subscribes to changes in signer status and chain configuration. * * @example - * ```tsx + * ```tsx twoslash * import { useSmartWalletClient } from "@account-kit/react"; * * function MyComponent() { diff --git a/account-kit/react/src/hooks/useSolanaConnection.ts b/account-kit/react/src/hooks/useSolanaConnection.ts index a809c19d58..142c40c991 100644 --- a/account-kit/react/src/hooks/useSolanaConnection.ts +++ b/account-kit/react/src/hooks/useSolanaConnection.ts @@ -28,9 +28,10 @@ export type SolanaConnectionHookParams = { * This hook is used for establishing a connection to Solana and returns the connection object and the signer object. * * @example - * ```ts - const {connection} = useSolanaConnection(); - + * ```ts twoslash + * import { useSolanaConnection } from "@account-kit/react"; + * + * const { connection } = useSolanaConnection(); * ``` * @param {SolanaConnectionHookParams} opts Options for the hook to get setup * @returns {SolanaConnection} The transaction hook. diff --git a/account-kit/react/src/hooks/useSolanaSignMessage.ts b/account-kit/react/src/hooks/useSolanaSignMessage.ts index 16e3575b68..444c70388f 100644 --- a/account-kit/react/src/hooks/useSolanaSignMessage.ts +++ b/account-kit/react/src/hooks/useSolanaSignMessage.ts @@ -47,14 +47,16 @@ export type UseSolanaSignMessageParams = { * connected Solana wallets, falling back to the internal signer when not connected. * * @example - * ```ts + * ```ts twoslash + * import { useSolanaSignMessage } from "@account-kit/react"; + * * const { * isPending: isSigningMessage, * mutate: signHello, * data: signature, * reset, - * } = useSolanaSignMessage({ - * }); + * } = useSolanaSignMessage({}); + * * mutate({ message: "Hello" }); * ``` * @param {UseSolanaSignMessageParams} opts - Options for the hook to get setup. diff --git a/account-kit/react/src/hooks/useSolanaTransaction.ts b/account-kit/react/src/hooks/useSolanaTransaction.ts index 19ffa75afa..2023b84b5a 100644 --- a/account-kit/react/src/hooks/useSolanaTransaction.ts +++ b/account-kit/react/src/hooks/useSolanaTransaction.ts @@ -103,17 +103,21 @@ export type SolanaTransactionHookParams = { * Supports sponsorship for both external wallets and internal signers. * * @example - * ```ts - const {mutate} = useSolanaTransaction({ - policyId: "", -}); - -mutate({ - transfer: { - amount: , - toAddress: "", - }, + * ```ts twoslash + * import { useSolanaTransaction } from "@account-kit/react"; + * + * const { mutate } = useSolanaTransaction({ + * policyId: "", + * }); + * + * mutate({ + * transfer: { + * amount: 0, + * toAddress: "", + * }, + * }); * ``` + * * @param {SolanaTransactionHookParams} opts Options for the hook to get setup, The transaction is required. * @returns {SolanaTransaction} The transaction hook. */ diff --git a/account-kit/react/src/hooks/useSolanaWallet.ts b/account-kit/react/src/hooks/useSolanaWallet.ts index 2f071b6de0..b4dad004e8 100644 --- a/account-kit/react/src/hooks/useSolanaWallet.ts +++ b/account-kit/react/src/hooks/useSolanaWallet.ts @@ -68,7 +68,7 @@ export const EMPTY_WALLET_CONTEXT_STATE: WalletContextState = Object.freeze({ * frozen, safe no-op context when Solana is not configured. * * @example - * ```ts + * ```ts twoslash * import { useSolanaWallet } from "@account-kit/react"; * * const wallet = useSolanaWallet(); diff --git a/account-kit/react/src/hooks/useUiConfig.tsx b/account-kit/react/src/hooks/useUiConfig.tsx index 76910d7104..c611f6aa0b 100644 --- a/account-kit/react/src/hooks/useUiConfig.tsx +++ b/account-kit/react/src/hooks/useUiConfig.tsx @@ -73,7 +73,7 @@ export function useUiConfig( * @throws Will throw an error if the `UiConfigContext` is not present in the component tree * * @example - * ```tsx twoslash + * ```ts twoslash * import { useUiConfig } from "@account-kit/react"; * * const { illustrationStyle, auth } = useUiConfig(({ illustrationStyle, auth }) => ({ illustrationStyle, auth })); diff --git a/account-kit/react/src/hooks/useUser.ts b/account-kit/react/src/hooks/useUser.ts index a485eb7314..2bf53a913e 100644 --- a/account-kit/react/src/hooks/useUser.ts +++ b/account-kit/react/src/hooks/useUser.ts @@ -23,7 +23,6 @@ export type UseUserResult = (User & { type: "eoa" | "sca" }) | null; * type UseUserResult = (User & { type: "eoa" | "sca" }) | null; * * const user = useUser(); - * * ``` */ diff --git a/account-kit/react/src/hooks/useWaitForCallsStatus.ts b/account-kit/react/src/hooks/useWaitForCallsStatus.ts index 4b744cdf62..3b47728a4f 100644 --- a/account-kit/react/src/hooks/useWaitForCallsStatus.ts +++ b/account-kit/react/src/hooks/useWaitForCallsStatus.ts @@ -26,7 +26,7 @@ export type UseWaitForCallsStatusResult = UseQueryResult; * It will poll until the calls reach the desired status or until a timeout occurs. * * @example - * ```tsx + * ```tsx twoslash * import { useWaitForCallsStatus } from "@account-kit/react"; * * function MyComponent() { diff --git a/docs/pages/reference/account-kit/react/hooks/useAlchemyAccountContext.mdx b/docs/pages/reference/account-kit/react/hooks/useAlchemyAccountContext.mdx index e18054a2ca..82ae77a664 100644 --- a/docs/pages/reference/account-kit/react/hooks/useAlchemyAccountContext.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useAlchemyAccountContext.mdx @@ -16,7 +16,7 @@ import { useAlchemyAccountContext } from "@account-kit/react"; ## Usage -```tsx +```ts twoslash import { useAlchemyAccountContext } from "@account-kit/react"; const { config, queryClient } = useAlchemyAccountContext(); diff --git a/docs/pages/reference/account-kit/react/hooks/useAuthError.mdx b/docs/pages/reference/account-kit/react/hooks/useAuthError.mdx index 23cb77175c..d1bfb52a40 100644 --- a/docs/pages/reference/account-kit/react/hooks/useAuthError.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useAuthError.mdx @@ -15,7 +15,7 @@ import { useAuthError } from "@account-kit/react"; ## Usage -```tsx twoslash +```ts twoslash import { useAuthError } from "@account-kit/react"; const error = useAuthError(); diff --git a/docs/pages/reference/account-kit/react/hooks/useCallsStatus.mdx b/docs/pages/reference/account-kit/react/hooks/useCallsStatus.mdx index b96d00782f..daaf8fdc03 100644 --- a/docs/pages/reference/account-kit/react/hooks/useCallsStatus.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useCallsStatus.mdx @@ -18,7 +18,7 @@ import { useCallsStatus } from "@account-kit/react"; ## Usage -```tsx +```tsx twoslash import { useCallsStatus } from "@account-kit/react"; function MyComponent() { diff --git a/docs/pages/reference/account-kit/react/hooks/useGrantPermissions.mdx b/docs/pages/reference/account-kit/react/hooks/useGrantPermissions.mdx index c6cf53b65d..565f80874c 100644 --- a/docs/pages/reference/account-kit/react/hooks/useGrantPermissions.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useGrantPermissions.mdx @@ -17,7 +17,7 @@ import { useGrantPermissions } from "@account-kit/react"; ## Usage -```tsx +```tsx twoslash import { useGrantPermissions, useSmartAccountClient } from "@account-kit/react"; function PermissionsComponent() { diff --git a/docs/pages/reference/account-kit/react/hooks/usePrepareCalls.mdx b/docs/pages/reference/account-kit/react/hooks/usePrepareCalls.mdx index 29985c700f..c92a495349 100644 --- a/docs/pages/reference/account-kit/react/hooks/usePrepareCalls.mdx +++ b/docs/pages/reference/account-kit/react/hooks/usePrepareCalls.mdx @@ -18,7 +18,9 @@ import { usePrepareCalls } from "@account-kit/react"; ## Usage -```tsx +```ts twoslash +import { usePrepareCalls } from "@account-kit/react"; + const { prepareCalls, prepareCallsAsync, isPreparingCalls, error } = usePrepareCalls(); diff --git a/docs/pages/reference/account-kit/react/hooks/useSendCalls.mdx b/docs/pages/reference/account-kit/react/hooks/useSendCalls.mdx index b4bab26e13..db082f4a39 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSendCalls.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSendCalls.mdx @@ -26,7 +26,9 @@ import { useSendCalls } from "@account-kit/react"; ## Usage -```tsx +```ts twoslash +import { useSendCalls } from "@account-kit/react"; + const { sendCalls, sendCallsAsync, isSendingCalls, error } = useSendCalls(); // Send a single call diff --git a/docs/pages/reference/account-kit/react/hooks/useSendPreparedCalls.mdx b/docs/pages/reference/account-kit/react/hooks/useSendPreparedCalls.mdx index c3874495c0..c564ca3c80 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSendPreparedCalls.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSendPreparedCalls.mdx @@ -18,7 +18,9 @@ import { useSendPreparedCalls } from "@account-kit/react"; ## Usage -```tsx +```ts twoslash +import { useSendPreparedCalls } from "@account-kit/react"; + const { sendPreparedCalls, sendPreparedCallsAsync, isSendingPreparedCalls, error } = useSendPreparedCalls(); // Send prepared calls diff --git a/docs/pages/reference/account-kit/react/hooks/useSmartWalletClient.mdx b/docs/pages/reference/account-kit/react/hooks/useSmartWalletClient.mdx index 41441ccec3..f483e7fe25 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSmartWalletClient.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSmartWalletClient.mdx @@ -17,7 +17,7 @@ import { useSmartWalletClient } from "@account-kit/react"; ## Usage -```tsx +```tsx twoslash import { useSmartWalletClient } from "@account-kit/react"; function MyComponent() { diff --git a/docs/pages/reference/account-kit/react/hooks/useSolanaConnection.mdx b/docs/pages/reference/account-kit/react/hooks/useSolanaConnection.mdx index a732f765bf..65c7cd3a1f 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSolanaConnection.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSolanaConnection.mdx @@ -15,7 +15,9 @@ import { useSolanaConnection } from "@account-kit/react"; ## Usage -```ts +```ts twoslash +import { useSolanaConnection } from "@account-kit/react"; + const { connection } = useSolanaConnection(); ``` diff --git a/docs/pages/reference/account-kit/react/hooks/useSolanaSignMessage.mdx b/docs/pages/reference/account-kit/react/hooks/useSolanaSignMessage.mdx index 92ce46ab47..0ef308ffbf 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSolanaSignMessage.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSolanaSignMessage.mdx @@ -16,13 +16,16 @@ import { useSolanaSignMessage } from "@account-kit/react"; ## Usage -```ts +```ts twoslash +import { useSolanaSignMessage } from "@account-kit/react"; + const { isPending: isSigningMessage, mutate: signHello, data: signature, reset, } = useSolanaSignMessage({}); + mutate({ message: "Hello" }); ``` diff --git a/docs/pages/reference/account-kit/react/hooks/useSolanaTransaction.mdx b/docs/pages/reference/account-kit/react/hooks/useSolanaTransaction.mdx index e90d39295b..442fa9fe7e 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSolanaTransaction.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSolanaTransaction.mdx @@ -17,16 +17,19 @@ import { useSolanaTransaction } from "@account-kit/react"; ## Usage -```ts -const {mutate} = useSolanaTransaction({ -policyId: "", +```ts twoslash +import { useSolanaTransaction } from "@account-kit/react"; + +const { mutate } = useSolanaTransaction({ + policyId: "", }); mutate({ -transfer: { -amount: , -toAddress: "", -}, + transfer: { + amount: 0, + toAddress: "", + }, +}); ``` ## Parameters diff --git a/docs/pages/reference/account-kit/react/hooks/useSolanaWallet.mdx b/docs/pages/reference/account-kit/react/hooks/useSolanaWallet.mdx index f29ff5880a..d20d65e8bb 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSolanaWallet.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSolanaWallet.mdx @@ -37,7 +37,7 @@ import { useSolanaWallet } from "@account-kit/react"; ## Usage -```ts +```ts twoslash import { useSolanaWallet } from "@account-kit/react"; const wallet = useSolanaWallet(); diff --git a/docs/pages/reference/account-kit/react/hooks/useUiConfig.mdx b/docs/pages/reference/account-kit/react/hooks/useUiConfig.mdx index 07425ee900..19682d7843 100644 --- a/docs/pages/reference/account-kit/react/hooks/useUiConfig.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useUiConfig.mdx @@ -16,7 +16,7 @@ import { useUiConfig } from "@account-kit/react"; ## Usage -```tsx twoslash +```ts twoslash import { useUiConfig } from "@account-kit/react"; const { illustrationStyle, auth } = useUiConfig( diff --git a/docs/pages/reference/account-kit/react/hooks/useWaitForCallsStatus.mdx b/docs/pages/reference/account-kit/react/hooks/useWaitForCallsStatus.mdx index 6f7e7f2356..aed07b306c 100644 --- a/docs/pages/reference/account-kit/react/hooks/useWaitForCallsStatus.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useWaitForCallsStatus.mdx @@ -16,7 +16,7 @@ import { useWaitForCallsStatus } from "@account-kit/react"; ## Usage -```tsx +```tsx twoslash import { useWaitForCallsStatus } from "@account-kit/react"; function MyComponent() { From e3f23679cd1afc1cd17f2ac6b22c7c8fbb8d9b0e Mon Sep 17 00:00:00 2001 From: jakehobbs Date: Tue, 16 Sep 2025 10:55:56 -0700 Subject: [PATCH 2/4] docs: fix example --- account-kit/react/src/hooks/useSolanaSignMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account-kit/react/src/hooks/useSolanaSignMessage.ts b/account-kit/react/src/hooks/useSolanaSignMessage.ts index 444c70388f..3753d83397 100644 --- a/account-kit/react/src/hooks/useSolanaSignMessage.ts +++ b/account-kit/react/src/hooks/useSolanaSignMessage.ts @@ -57,7 +57,7 @@ export type UseSolanaSignMessageParams = { * reset, * } = useSolanaSignMessage({}); * - * mutate({ message: "Hello" }); + * signHello({ message: "Hello" }); * ``` * @param {UseSolanaSignMessageParams} opts - Options for the hook to get setup. * @returns {SolanaSignedMessage} This should be hook mutations plus a few more. Used to get the end result of the signing and the callbacks. From b1acdb93c53b58d58ec1e525346d27213a6f66ea Mon Sep 17 00:00:00 2001 From: jakehobbs Date: Tue, 16 Sep 2025 11:00:59 -0700 Subject: [PATCH 3/4] chore: generate docs --- .../reference/account-kit/react/hooks/useSolanaSignMessage.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/reference/account-kit/react/hooks/useSolanaSignMessage.mdx b/docs/pages/reference/account-kit/react/hooks/useSolanaSignMessage.mdx index 0ef308ffbf..d12deea16a 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSolanaSignMessage.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSolanaSignMessage.mdx @@ -26,7 +26,7 @@ const { reset, } = useSolanaSignMessage({}); -mutate({ message: "Hello" }); +signHello({ message: "Hello" }); ``` ## Parameters From 7b5ef6f9ee700aba019f81f7cfba732bf7a49491 Mon Sep 17 00:00:00 2001 From: jakehobbs Date: Tue, 16 Sep 2025 11:07:25 -0700 Subject: [PATCH 4/4] docs: fix another bad placeholder --- account-kit/react/src/hooks/useSendPreparedCalls.ts | 4 +++- .../account-kit/react/hooks/useSendPreparedCalls.mdx | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/account-kit/react/src/hooks/useSendPreparedCalls.ts b/account-kit/react/src/hooks/useSendPreparedCalls.ts index 290d2fab85..9c91eeda27 100644 --- a/account-kit/react/src/hooks/useSendPreparedCalls.ts +++ b/account-kit/react/src/hooks/useSendPreparedCalls.ts @@ -72,7 +72,9 @@ export type UseSendPreparedCallsResult = { * * // Send prepared calls * await sendPreparedCallsAsync({ - * preparedCalls: [/* prepared call objects *\/] + * preparedCalls: [ + * // prepared call objects + * ] * }); * ``` * diff --git a/docs/pages/reference/account-kit/react/hooks/useSendPreparedCalls.mdx b/docs/pages/reference/account-kit/react/hooks/useSendPreparedCalls.mdx index c564ca3c80..8ba42e6e21 100644 --- a/docs/pages/reference/account-kit/react/hooks/useSendPreparedCalls.mdx +++ b/docs/pages/reference/account-kit/react/hooks/useSendPreparedCalls.mdx @@ -21,11 +21,18 @@ import { useSendPreparedCalls } from "@account-kit/react"; ```ts twoslash import { useSendPreparedCalls } from "@account-kit/react"; -const { sendPreparedCalls, sendPreparedCallsAsync, isSendingPreparedCalls, error } = useSendPreparedCalls(); +const { + sendPreparedCalls, + sendPreparedCallsAsync, + isSendingPreparedCalls, + error, +} = useSendPreparedCalls(); // Send prepared calls await sendPreparedCallsAsync({ -preparedCalls: [/* prepared call objects *\/] + preparedCalls: [ + // prepared call objects + ], }); ```