Dashboard › opencode › TypeScript coding style
01a0aec3-99f5-73ad-baac-0438dac28f77Prefer 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.