Skip to content

API Reference / @gtkx/testing / TypeOptions

Type Alias: TypeOptions ​

TypeOptions = object

Defined in: packages/testing/src/user-event/text.ts:16

Options for userEvent.type.

Properties ​

initialSelectionEnd? ​

optional initialSelectionEnd?: number

Defined in: packages/testing/src/user-event/text.ts:22

End offset of the initial selection (defaults to the start offset).


initialSelectionStart? ​

optional initialSelectionStart?: number

Defined in: packages/testing/src/user-event/text.ts:20

Select from this offset before typing, replacing the selected range with the typed text.


shouldFocus? ​

optional shouldFocus?: boolean

Defined in: packages/testing/src/user-event/text.ts:18

Focus the widget before typing; defaults to true.