From 8abcd6817ec0d2552a1b3f9a2f0e645ee50246bb Mon Sep 17 00:00:00 2001 From: Vadim Demedes Date: Sun, 22 Sep 2019 15:52:41 -0700 Subject: [PATCH] Minor changes --- index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.d.ts b/index.d.ts index f1599d84a..a077cc4b8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 = () => { @@ -72,6 +73,7 @@ export type Unmount = () => void; * * return … * }; + * ``` */ export function useInput( inputHandler: (input: string, key: Key) => void