mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-02 22:22:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
97
web/node_modules/@testing-library/user-event/typings/index.d.ts
generated
vendored
Normal file
97
web/node_modules/@testing-library/user-event/typings/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,97 @@
|
|||
// Definitions by: Wu Haotian <https://github.com/whtsky>
|
||||
export interface ITypeOpts {
|
||||
skipClick?: boolean
|
||||
skipAutoClose?: boolean
|
||||
delay?: number
|
||||
initialSelectionStart?: number
|
||||
initialSelectionEnd?: number
|
||||
}
|
||||
|
||||
export interface ITabUserOptions {
|
||||
shift?: boolean
|
||||
focusTrap?: Document | Element
|
||||
}
|
||||
|
||||
export type TargetElement = Element | Window
|
||||
|
||||
export type FilesArgument = File | File[]
|
||||
|
||||
export type UploadInitArgument = {
|
||||
clickInit?: MouseEventInit
|
||||
changeInit?: Event
|
||||
}
|
||||
|
||||
export interface IClickOptions {
|
||||
skipHover?: boolean
|
||||
clickCount?: number
|
||||
}
|
||||
|
||||
export interface IUploadOptions {
|
||||
applyAccept?: boolean
|
||||
}
|
||||
|
||||
declare const userEvent: {
|
||||
clear: (element: TargetElement) => void
|
||||
click: (
|
||||
element: TargetElement,
|
||||
init?: MouseEventInit,
|
||||
options?: IClickOptions,
|
||||
) => void
|
||||
dblClick: (
|
||||
element: TargetElement,
|
||||
init?: MouseEventInit,
|
||||
options?: IClickOptions,
|
||||
) => void
|
||||
selectOptions: (
|
||||
element: TargetElement,
|
||||
values: string | string[] | HTMLElement | HTMLElement[],
|
||||
init?: MouseEventInit,
|
||||
) => void
|
||||
deselectOptions: (
|
||||
element: TargetElement,
|
||||
values: string | string[] | HTMLElement | HTMLElement[],
|
||||
init?: MouseEventInit,
|
||||
) => void
|
||||
upload: (
|
||||
element: TargetElement,
|
||||
files: FilesArgument,
|
||||
init?: UploadInitArgument,
|
||||
options?: IUploadOptions,
|
||||
) => void
|
||||
type: <T extends ITypeOpts>(
|
||||
element: TargetElement,
|
||||
text: string,
|
||||
userOpts?: T,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
) => T extends {delay: number} ? Promise<void> : void
|
||||
tab: (userOpts?: ITabUserOptions) => void
|
||||
paste: (
|
||||
element: TargetElement,
|
||||
text: string,
|
||||
init?: MouseEventInit,
|
||||
pasteOptions?: {
|
||||
initialSelectionStart?: number
|
||||
initialSelectionEnd?: number
|
||||
},
|
||||
) => void
|
||||
hover: (element: TargetElement, init?: MouseEventInit) => void
|
||||
unhover: (element: TargetElement, init?: MouseEventInit) => void
|
||||
}
|
||||
|
||||
export default userEvent
|
||||
|
||||
export enum specialChars {
|
||||
arrowLeft = '{arrowleft}',
|
||||
arrowRight = '{arrowright}',
|
||||
arrowDown = '{arrowdown}',
|
||||
arrowUp = '{arrowup}',
|
||||
enter = '{enter}',
|
||||
escape = '{esc}',
|
||||
delete = '{del}',
|
||||
backspace = '{backspace}',
|
||||
home = '{home}',
|
||||
end = '{end}',
|
||||
selectAll = '{selectall}',
|
||||
space = '{space}',
|
||||
whitespace = ' ',
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue