From b5c6858812751c43efecee4c78a0b9f4d56ab499 Mon Sep 17 00:00:00 2001 From: tom oneill Date: Mon, 23 Feb 2026 11:24:28 +0000 Subject: [PATCH 1/2] fix: export Key, KeyAction, Mods, DirtyState as runtime values Amp-Thread-ID: https://ampcode.com/threads/T-019c8a33-a7d6-72da-baa3-6cc640a1738c Co-authored-by: Amp --- lib/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index bbf54c2..f4c7e12 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -71,12 +71,14 @@ export type { } from './interfaces'; // Ghostty WASM components (for advanced usage) -export { Ghostty, GhosttyTerminal, KeyEncoder, CellFlags, KeyEncoderOption } from './ghostty'; -export type { - KeyEvent, - KeyAction, +export { Ghostty, GhosttyTerminal, KeyEncoder, CellFlags, DirtyState, KeyEncoderOption } from './ghostty'; +export { Key, + KeyAction, Mods, +} from './types'; +export type { + KeyEvent, GhosttyCell, RGB, Cursor, From 740cf028a67ae4fd70c47bc2868ce971f410bbeb Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Tue, 24 Feb 2026 02:31:08 +0000 Subject: [PATCH 2/2] style: fix prettier formatting in lib/index.ts --- lib/index.ts | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index f4c7e12..b46e05b 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -71,19 +71,16 @@ export type { } from './interfaces'; // Ghostty WASM components (for advanced usage) -export { Ghostty, GhosttyTerminal, KeyEncoder, CellFlags, DirtyState, KeyEncoderOption } from './ghostty'; export { - Key, - KeyAction, - Mods, -} from './types'; -export type { - KeyEvent, - GhosttyCell, - RGB, - Cursor, - TerminalHandle, -} from './types'; + Ghostty, + GhosttyTerminal, + KeyEncoder, + CellFlags, + DirtyState, + KeyEncoderOption, +} from './ghostty'; +export { Key, KeyAction, Mods } from './types'; +export type { KeyEvent, GhosttyCell, RGB, Cursor, TerminalHandle } from './types'; // Low-level components (for custom integrations) export { CanvasRenderer } from './renderer';