Files
lanecarford_front/env.d.ts
2025-11-05 11:40:17 +08:00

31 lines
883 B
TypeScript

/// <reference types="vite/client" />
// Google Identity Services 类型声明
interface GoogleAccounts {
accounts: {
id: {
initialize: (config: {
client_id: string
auto_select?: boolean
callback: (response: { credential: string }) => void
context?: 'signin' | 'signup' | 'use'
ux_mode?: 'popup' | 'redirect'
itp_support?: boolean
cancel_on_tap_outside?: boolean
}) => void
renderButton: (element: Element | null, config: {
type?: 'standard' | 'icon'
shape?: 'rectangular' | 'pill' | 'circle' | 'square'
theme?: 'outline' | 'filled_blue' | 'filled_black'
size?: 'large' | 'medium' | 'small'
logo_alignment?: 'left' | 'center'
}) => void
disableAutoSelect?: () => void
}
}
}
interface Window {
google?: GoogleAccounts
isAddGmail?: boolean
}