UNPKG

629 BTypeScriptView Raw
1declare const TrackChanges: unique symbol;
2declare global {
3 interface Window {
4 REACT_VERSION?: number;
5 }
6 interface Element {
7 [TrackChanges]?: {
8 previousValue?: string;
9 tracked?: string[];
10 nextValue?: string;
11 };
12 }
13}
14export declare function startTrackValue(element: HTMLInputElement | HTMLTextAreaElement): void;
15export declare function trackOrSetValue(element: HTMLInputElement | HTMLTextAreaElement, v: string): void;
16export declare function commitValueAfterInput(element: HTMLInputElement | HTMLTextAreaElement, cursorOffset: number): void;
17export {};