From f6c533ed760e21d35904ce324fb10184dae88352 Mon Sep 17 00:00:00 2001 From: Philipp Fritsche Date: Tue, 16 Mar 2021 18:31:23 +0100 Subject: [PATCH] chore: lint fix --- src/utils/click/getMouseEventOptions.ts | 4 ++-- typings/index.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/click/getMouseEventOptions.ts b/src/utils/click/getMouseEventOptions.ts index 6569c9e3..d798a151 100644 --- a/src/utils/click/getMouseEventOptions.ts +++ b/src/utils/click/getMouseEventOptions.ts @@ -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] @@ -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 diff --git a/typings/index.d.ts b/typings/index.d.ts index 4c032c7c..3d4ae385 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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: (