diff --git a/package.json b/package.json index 827b51f..524ebd0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kabbouchi/vue-web3", - "version": "0.2.14", + "version": "0.2.15", "description": "Vue web3 composition api", "license": "MIT", "main": "dist/cjs/index.js", diff --git a/src/index.ts b/src/index.ts index f51c3a7..c746e87 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import { AbstractConnector } from '@web3-react/abstract-connector' import { normalizeAccount, normalizeChainId } from './normalizers' import { ConnectorEvent, ConnectorUpdate } from '@web3-react/types' -import { computed, onBeforeUnmount, ref, watch } from 'vue-demi' +import { computed, onBeforeUnmount, Ref, ref, watch } from 'vue-demi' export class UnsupportedChainIdError extends Error { public constructor( @@ -36,7 +36,7 @@ export const setWeb3LibraryCallback = ( getLibrary = cb } -export const useWeb3 = () => { +export const useWeb3 = () => { const onErrorCb = ref<(error: Error) => void>() const activate = async ( @@ -180,7 +180,7 @@ export const useWeb3 = () => { }) return { - library, + library: library as Ref, active, activate, deactivate,