DashboardopencodeTypeScript coding style

TypeScript coding style

Category: preference
Confidence: 1.00
ID: 01a0aec3-99f5-73ad-baac-0438dac28f77
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0owN8Zwi30E6DL7hU
Created: 2026-09-08 01:31:49
Updated: 2026-09-17 09:47:29

Content

Prefer Bun APIs, inference, const, early returns, functional transforms, filter guards, dot notation over unnecessary destructuring, and one cohesive happy-path function. Keep single-use logic inline; extract only reusable or composable concepts, genuinely complex boundaries, or clearly named helpers, placing small helpers near and below the main export. Synchronous helpers must not return Effect. Never introduce any, non-null assertions, unchecked casts, reassignment, else, try/catch, unnecessary annotations, or loops merely to satisfy types.

Move to: