From ba3cf45be7bf410f3ef32ee3e72559d73f95e50d 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 abf784c6e..d7fdc8141 100644 --- a/index.d.ts +++ b/index.d.ts @@ -50,6 +50,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 = () => { @@ -65,6 +66,7 @@ export type Unmount = () => void; * * return … * }; + * ``` */ export function useInput( inputHandler: (input: string, key: Key) => void