deshiknaves / caret-pos

Locate the current position of the caret. A plain JavaScript version of Caret.js.
MIT License
120 stars 15 forks source link

Fix index.d.ts #37

Closed Aizaz-Ahmad closed 3 years ago

Aizaz-Ahmad commented 3 years ago

position function inside the code returns Element but inside the declaration file the overload for setting the position of caret declares Pos as the value returned by the set overload of the function