diff --git a/src/index.ts b/src/index.ts index ac38463..c13061c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,9 +45,11 @@ export const setWeb3LibraryCallback = ( getLibrary = cb } -export type VueWeb3Library = any +export interface IVueWeb3Library { + [key: string]: any +} -export const useWeb3 = () => { +export const useWeb3 = () => { const onErrorCb = ref<(error: Error) => void>() const activate = async ( @@ -191,7 +193,7 @@ export const useWeb3 = () => { }) return { - library: library as Ref, + library: library as Ref, active, activate, deactivate,