←Browse Popular

Prefer `unknown` over `any` — it forces type narrowing before use and catches bugs at compile time.

typescript
Style Guide
TypeScript Defaults
#d9b04d55aced92efFirst seen Sep 26, 2026

1

Up

0

Down

+1

Net

Voting History

Loading...

AI Assessment

Enforce preferring `unknown` over `any` with a linter rule like ESLint `@typescript-eslint/no-explicit-any` or Biome `noExplicitAny`, not in agent instructions.

Move to Config4/10

Better enforced by tooling, not AI rules

Similar Rules