localfirstai/bettertui★ 1

Refactor/type reorganization and file renames

Mergedopened · merged · #9

About localfirstai/bettertui

A high-performance terminal runtime for building modern terminal applications with Rust and TypeScript.

The change

Summary Reorganizes types between @bettertui/shared and @bettertui/core to eliminate local-only types from shared, while standardizing file naming across the monorepo. Changes Type Reorganization Moved to @bettertui/core: • Geometry types (Point, Size, Rect) → core/src/geometry.types.ts • 31 widget option types → core/src/widgets/widget.types.ts Kept in @bettertui/shared (cross-package types): • Theme types (required by shared/consts.ts - avoiding cyclic deps) • Layout types (LayoutConstraints used across packages) • Event types (canonical cross-framework types) • TimelineOptions, TweenConfig Naming Disambiguation • cliRenderer.KeyEvent → RawKeyEvent (conflicts with shared KeyEvent) • devtools.TreeNode → DevToolsNode (conflicts with widget TreeNode) Verification • All 5 packages pass typecheck: shared, core, react, solid, performance