From b30fecbbca4e45535bb3cd6afcaf037f46e05b76 Mon Sep 17 00:00:00 2001 From: hayes-mysten <135670682+hayes-mysten@users.noreply.github.com> Date: Wed, 6 Dec 2023 11:04:11 -0800 Subject: [PATCH] [dapp-kit] Fix missing export of SuiClientQueries (#15230) ## Description Describe the changes or additions included in this PR. ## Test Plan How did you test the new or updated feature? --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes --- .changeset/giant-cycles-happen.md | 5 +++++ sdk/dapp-kit/src/hooks/useSuiClientQueries.ts | 2 +- sdk/dapp-kit/src/index.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/giant-cycles-happen.md 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';