3.0.3 • Published 6 months ago

@types/textarea-caret v3.0.3

Weekly downloads
12,735
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for textarea-caret 3.0
// Project: https://github.com/component/textarea-caret-position
// Definitions by: Brendan Forster <https://github.com/shiftkey>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6

export = textarea_caret;

interface Caret {
    top: number;
    left: number;
    height: number;
}

interface Options {
    debug?: boolean | undefined;
}

declare function textarea_caret(element: HTMLElement, position: number, options?: Options): Caret;

Additional Details

  • Last updated: Fri, 02 Jul 2021 21:32:20 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Brendan Forster.