4.1.3 • Published 6 months ago

@types/user-event v4.1.3

Weekly downloads
1,537
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for user-event 4.1
// Project: https://github.com/testing-library/user-event
// Definitions by: Wu Haotian <https://github.com/whtsky>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Fri, 02 Jul 2021 18:04:53 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Wu Haotian.

4.1.3

6 months ago

4.1.2

7 months ago

4.1.1

3 years ago

4.1.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago