# @types/user-event

> TypeScript definitions for user-event

Latest version **4.1.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/user-event
pnpm add @types/user-event
yarn add @types/user-event
bun add @types/user-event
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.1.3 |
| Published | 2023-11-07 |
| First published | 2019-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51470 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/user-event
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/user-event
- npm.io page: https://npm.io/package/@types/user-event

## Recent versions

- 4.1.3 (latest) — 2023-11-07
- 4.1.1 (ts3.6) — 2021-07-02
- 4.1.0 (ts2.0) — 2019-06-26
- 4.1.2 — 2023-10-18
- 1.4.1 — 2019-05-20
- 1.4.0 — 2019-01-30

## README

# Installation
> `npm install --save @types/user-event`

# Summary
This package contains type definitions for user-event (https://github.com/testing-library/user-event).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/user-event.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/user-event/index.d.ts)
````ts
export interface UserOpts {
    allAtOnce?: boolean | undefined;
    delay?: number | undefined;
}
declare const userEvent: {
    click: (element: Element | Window) => void;
    dblClick: (element: Element | Window) => void;

    selectOptions: (element: Element | Window, values: string | string[]) => void;

    type: (element: Element | Window, text: string, userOpts?: UserOpts) => Promise<void>;
};

export default userEvent;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Wu Haotian](https://github.com/whtsky).

---
_Source: https://npm.io/package/@types/user-event · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
