Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Demedes committed Sep 23, 2019
1 parent 468e33b commit 8abcd68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export type Unmount = () => void;
* The callback you pass to `useInput` is called for each character when user enters any input.
* However, if user pastes text and it's more than one character, the callback will be called only once and the whole string will be passed as `input`.
*
* ```js
* import {useInput} from 'ink';
*
* const UserInput = () => {
Expand All @@ -72,6 +73,7 @@ export type Unmount = () => void;
*
* return …
* };
* ```
*/
export function useInput(
inputHandler: (input: string, key: Key) => void
Expand Down

0 comments on commit 8abcd68

Please sign in to comment.