useCursor.d.ts 245 B

12345
  1. /**
  2. * Keep input cursor in the correct position if possible.
  3. * Is this necessary since we have `formatter` which may mass the content?
  4. */
  5. export default function useCursor(input: HTMLInputElement, focused: boolean): [() => void, () => void];