Skip to content

Commit

Permalink
[dapp-kit] Fix missing export of SuiClientQueries (MystenLabs#15230)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
hayes-mysten authored Dec 6, 2023
1 parent e5e1cce commit b30fecb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/giant-cycles-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/dapp-kit': patch
---

Fix missing export of useSuiClientQueries
2 changes: 1 addition & 1 deletion sdk/dapp-kit/src/hooks/useSuiClientQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type SuiClientQueryOptions = SuiRpcMethods[keyof SuiRpcMethods] extends infer Me
: never
: never;

type UseSuiClientQueriesResults<Args extends readonly SuiClientQueryOptions[]> = {
export type UseSuiClientQueriesResults<Args extends readonly SuiClientQueryOptions[]> = {
-readonly [K in keyof Args]: Args[K] extends {
method: infer M extends keyof SuiRpcMethods;
options?: {
Expand Down
1 change: 1 addition & 0 deletions sdk/dapp-kit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit b30fecb

Please sign in to comment.