bugfix: 谷歌登录
This commit is contained in:
27
env.d.ts
vendored
27
env.d.ts
vendored
@@ -1 +1,28 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user