export library type

This commit is contained in:
Georges KABBOUCHI 2022-10-17 15:08:37 +03:00
parent 2daca3af95
commit b4eed7bf5c
3 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@instadapp/vue-web3-nuxt",
"version": "0.9.3",
"version": "0.9.4",
"license": "MIT",
"type": "module",
"exports": {

View File

@ -1,6 +1,6 @@
{
"name": "@instadapp/vue-web3",
"version": "0.9.3",
"version": "0.9.4",
"description": "Vue web3 composition api",
"license": "MIT",
"main": "index.js",

View File

@ -45,7 +45,9 @@ export const setWeb3LibraryCallback = (
getLibrary = cb
}
export const useWeb3 = <TLibrary = any>() => {
export type VueWeb3Library = any
export const useWeb3 = <TLibrary = VueWeb3Library>() => {
const onErrorCb = ref<(error: Error) => void>()
const activate = async (