UNPKG

@types/textarea-caret

Version:
35 lines (25 loc) 945 B
# Installation > `npm install --save @types/textarea-caret` # Summary This package contains type definitions for textarea-caret (https://github.com/component/textarea-caret-position). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/textarea-caret. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/textarea-caret/index.d.ts) ````ts 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; ```` ### Additional Details * Last updated: Wed, 30 Apr 2025 02:12:45 GMT * Dependencies: none # Credits These definitions were written by [Brendan Forster](https://github.com/shiftkey).