@terminus/ngx-tools
Version:
[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github
11 lines (10 loc) • 373 B
TypeScript
/**
* Focuses an input, sets it's value and dispatches the `input` event, simulating the user typing.
*
* @param value - Value to be set on the input.
* @param element - Element onto which to set the value.
*
* @example
* typeInElement('test@test.com', myEmailInputElement);
*/
export declare function typeInElement(value: string, element: HTMLInputElement): void;