Files
lanecarford_front/env.d.ts

28 lines
760 B
TypeScript
Raw Normal View History

2025-10-09 09:29:36 +08:00
/// <reference types="vite/client" />
2025-11-05 10:24:53 +08:00
// Google Identity Services 类型声明
interface GoogleAccounts {
accounts: {
id: {
initialize: (config: {
client_id: string
auto_select?: boolean
callback: (response: { credential: string }) => void
ux_mode?: 'popup' | 'redirect'
itp_support?: 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
}
}
}
interface Window {
google?: GoogleAccounts
isAddGmail?: boolean
}