Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Mar 16, 2021
1 parent db00fe1 commit f6c533e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/utils/click/getMouseEventOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const BUTTON_NAMES = {
secondary: 2,
} as const

function translateButtonNumber(value: number, from: 'buttons' | 'button') {
function translateButtonNumber(value: number, from: 'button' | 'buttons') {
const [mapIn, mapOut] =
from === 'button'
? [BUTTON_NAMES, BUTTONS_NAMES]
Expand All @@ -39,7 +39,7 @@ function translateButtonNumber(value: number, from: 'buttons' | 'button') {
function convertMouseButtons(
event: string,
init: MouseEventInit,
property: 'buttons' | 'button',
property: 'button' | 'buttons',
): number {
if (!isMousePressEvent(event)) {
return 0
Expand Down
4 changes: 2 additions & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ declare const userEvent: {
) => void
selectOptions: (
element: TargetElement,
values: string | string[] | HTMLElement | HTMLElement[],
values: HTMLElement | HTMLElement[] | string[] | string,
init?: MouseEventInit,
) => void
deselectOptions: (
element: TargetElement,
values: string | string[] | HTMLElement | HTMLElement[],
values: HTMLElement | HTMLElement[] | string[] | string,
init?: MouseEventInit,
) => void
upload: (
Expand Down

0 comments on commit f6c533e

Please sign in to comment.