npm.io
4.1.3 • Published 2 years ago

@types/user-event

Licence
MIT
Version
4.1.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Wu Haotian.