21 lines
517 B
TypeScript
21 lines
517 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue'
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|
|
|
|
// Add MetaMask types
|
|
declare interface Window {
|
|
ethereum?: {
|
|
isMetaMask?: boolean
|
|
request: (args: {
|
|
method: string
|
|
params?: any[]
|
|
}) => Promise<any>
|
|
on: (event: string, callback: (...args: any[]) => void) => void
|
|
removeListener: (event: string, callback: (...args: any[]) => void) => void
|
|
}
|
|
}
|