@maskito/core
Version:
The main zero-dependency and framework-agnostic Maskito's package to create an input mask
15 lines • 549 B
TypeScript
import type { ElementState, MaskitoElement } from '../../types';
/**
* Sets value to element, and dispatches input event
* if you passed ELementState, it also sets selection range
*
* @example
* maskitoUpdateElement(input, newValue);
* maskitoUpdateElement(input, elementState);
*
* @see {@link https://github.com/taiga-family/maskito/issues/804 issue}
*
* @return void
*/
export declare function maskitoUpdateElement(element: MaskitoElement, valueOrElementState: ElementState | string): void;
//# sourceMappingURL=update-element.d.ts.map