ink-cartridge
    Preparing search index...

    Type Alias KeyHandler

    KeyHandler: (input: string, key: unknown) => void

    Keyboard callback, matching Ink's useInput signature.

    Type Declaration

      • (input: string, key: unknown): void
      • Parameters

        • input: string

          The raw character string (empty for special keys).

        • key: unknown

          The key descriptor (booleans for special keys, modifiers).

        Returns void