Back to Workshop resources
Claude Code1 min read
Claude Code + TypeScript — small adjustments that pay off.
TypeScript is the default. Here's how to make sure Claude Code generates types you'll be glad to read in 6 months.
Overview
Claude Code defaults to TypeScript with reasonable defaults. Small tweaks to your CLAUDE.md change the type quality dramatically.
Tell Claude your strictness preference
In CLAUDE.md: "strict: true in tsconfig. Don't use
any unless it's a deliberate marker; prefer unknown for genuinely unknown shapes."Type all the public surface
Components props, API request/response, content data files. Internal helper functions can rely on inference.
Don't fight Next.js's types
Next.js 16 has strict types for Metadata, route params, etc. Use the imports they provide rather than redefining shapes.
PreviousScaffolding a Next.js site with Claude Code.Next Claude Code + Tailwind — keeping the design clean.
Want to Apply This to Your Business?
We're a Singapore AI development and automation agency. Let's discuss how we can help solve your specific challenges.