File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @ant-design/web3 ' : patch
3+ ---
4+
5+ fix: useAccount and useConnection hooks ts type bug
Original file line number Diff line number Diff line change 1+ import type { ConfigConsumerProps } from '@ant-design/web3-common' ;
2+
13import useProvider from './useProvider' ;
24
3- export default function useAccount ( ) {
5+ export default function useAccount ( ) : Pick < ConfigConsumerProps , 'account' > {
46 const { account } = useProvider ( ) ;
57
68 return {
Original file line number Diff line number Diff line change 1+ import type { ConfigConsumerProps } from '@ant-design/web3-common' ;
2+
13import useProvider from './useProvider' ;
24
3- export default function useConnection ( ) {
5+ export default function useConnection ( ) : Pick < ConfigConsumerProps , 'connect' | 'disconnect' > {
46 const { connect, disconnect } = useProvider ( ) ;
57
68 return {
You can’t perform that action at this time.
0 commit comments