diff --git a/.changeset/giant-cycles-happen.md b/.changeset/giant-cycles-happen.md new file mode 100644 index 0000000000000..31c14e5e1e7f5 --- /dev/null +++ b/.changeset/giant-cycles-happen.md @@ -0,0 +1,5 @@ +--- +'@mysten/dapp-kit': patch +--- + +Fix missing export of useSuiClientQueries diff --git a/sdk/dapp-kit/src/hooks/useSuiClientQueries.ts b/sdk/dapp-kit/src/hooks/useSuiClientQueries.ts index da58f781c3c2e..129922a4c7616 100644 --- a/sdk/dapp-kit/src/hooks/useSuiClientQueries.ts +++ b/sdk/dapp-kit/src/hooks/useSuiClientQueries.ts @@ -26,7 +26,7 @@ type SuiClientQueryOptions = SuiRpcMethods[keyof SuiRpcMethods] extends infer Me : never : never; -type UseSuiClientQueriesResults = { +export type UseSuiClientQueriesResults = { -readonly [K in keyof Args]: Args[K] extends { method: infer M extends keyof SuiRpcMethods; options?: { diff --git a/sdk/dapp-kit/src/index.ts b/sdk/dapp-kit/src/index.ts index 4ce6cf5a95fe6..c60479c2b4aea 100644 --- a/sdk/dapp-kit/src/index.ts +++ b/sdk/dapp-kit/src/index.ts @@ -11,6 +11,7 @@ export * from './hooks/useSuiClient.js'; export * from './hooks/useSuiClientInfiniteQuery.js'; export * from './hooks/useSuiClientMutation.js'; export * from './hooks/useSuiClientQuery.js'; +export * from './hooks/useSuiClientQueries.js'; export * from './hooks/wallet/useAccounts.js'; export * from './hooks/wallet/useAutoConnectWallet.js'; export * from './hooks/wallet/useConnectWallet.js';