UNPKG

less-pager-mini

Version:

A scrollable terminal pager for Node.js CLI apps (terminal only)

9 lines (8 loc) 313 B
import { Actions } from "./interfaces"; /** * Maps a key press to a corresponding pager action. * * @param key - A single-character string from user input. * @returns The corresponding `Actions` type if defined, otherwise `undefined`. */ export declare const getAction: (key: string) => Actions | undefined;