xtraderClient/src/vite-env.d.ts
2026-02-05 14:43:10 +08:00

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
}
}