Skip to content

Commit cce9775

Browse files
fix: export types to enable proper type inference from useAppKit function (#4497)
Co-authored-by: enesozturk <enes@reown.com>
1 parent 441fd9a commit cce9775

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.changeset/pink-mice-buy.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
'@reown/appkit': patch
3+
'@reown/appkit-adapter-bitcoin': patch
4+
'@reown/appkit-adapter-ethers': patch
5+
'@reown/appkit-adapter-ethers5': patch
6+
'@reown/appkit-adapter-solana': patch
7+
'@reown/appkit-adapter-wagmi': patch
8+
'@reown/appkit-utils': patch
9+
'@reown/appkit-cdn': patch
10+
'@reown/appkit-cli': patch
11+
'@reown/appkit-codemod': patch
12+
'@reown/appkit-common': patch
13+
'@reown/appkit-controllers': patch
14+
'@reown/appkit-core': patch
15+
'@reown/appkit-experimental': patch
16+
'@reown/appkit-pay': patch
17+
'@reown/appkit-polyfills': patch
18+
'@reown/appkit-scaffold-ui': patch
19+
'@reown/appkit-siwe': patch
20+
'@reown/appkit-siwx': patch
21+
'@reown/appkit-testing': patch
22+
'@reown/appkit-ui': patch
23+
'@reown/appkit-wallet': patch
24+
'@reown/appkit-wallet-button': patch
25+
---
26+
27+
Exports type definitions of Base class for better TS support when using hooks

packages/appkit/exports/react.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export * from '../src/library/react/index.js'
1515
export * from '../src/utils/index.js'
1616
export type * from '@reown/appkit-controllers'
1717
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common'
18+
export type { AppKitBaseClient, OpenOptions, Views } from '../src/client/appkit-base-client.js'
1819
export { CoreHelperUtil, AccountController } from '@reown/appkit-controllers'
1920

2021
export let modal: AppKit | undefined = undefined

0 commit comments

Comments
 (0)