@types/textarea-caret
Version:
TypeScript definitions for textarea-caret
16 lines (11 loc) • 309 B
TypeScript
export = getCaretCoordinates;
interface Caret {
top: number;
left: number;
height: number;
}
interface Options {
debug?: boolean | undefined;
}
declare function getCaretCoordinates(element: HTMLElement, position: number, options?: Options): Caret;
export as namespace getCaretCoordinates;