-
Notifications
You must be signed in to change notification settings - Fork 1
/
typings.d.ts
26 lines (23 loc) · 880 Bytes
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
interface Window {
__ctrlpanel_extension_available_fields__: () => { handle: boolean, password: boolean }
__ctrlpanel_extension_fill_field__: (field: 'handle' | 'password', value: string) => void
__ctrlpanel_extension_get_filled_handle__: () => string
__ctrlpanel_extension_perform_login__: (handle: string, password: string, submit: boolean) => void
}
declare module '@buttercup/locust' {
export function getLoginTarget(): {
login (username: string, password: string): Promise<void>
enterDetails (username: string, password: string): Promise<void>
fillUsername (username: string): Promise<void>
fillPassword (password: string): Promise<void>
usernameField: HTMLInputElement | null
passwordField: HTMLInputElement | null
}
}
interface Safari {
self: {
height: number
hide: () => void
}
}
declare const safari: Safari | undefined