From b4eed7bf5c37800201e22043216601c9ae3fd00b Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Mon, 17 Oct 2022 15:08:37 +0300 Subject: [PATCH] export library type --- nuxt/package.json | 2 +- package.json | 2 +- src/index.ts | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/nuxt/package.json b/nuxt/package.json index 75b20a2..3e2ed3f 100644 --- a/nuxt/package.json +++ b/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@instadapp/vue-web3-nuxt", - "version": "0.9.3", + "version": "0.9.4", "license": "MIT", "type": "module", "exports": { diff --git a/package.json b/package.json index 6913b6f..2f25d67 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index 91f551d..67a64b6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,7 +45,9 @@ export const setWeb3LibraryCallback = ( getLibrary = cb } -export const useWeb3 = () => { +export type VueWeb3Library = any + +export const useWeb3 = () => { const onErrorCb = ref<(error: Error) => void>() const activate = async (