Setup tsconfig.json (strict: true)

Berkas tsconfig.json mengatur aturan kompilator TypeScript. Memasang "strict": true mengaktifkan seluruh fitur pengamanan tipe terbaik.

👀 Contoh dulu

// tsconfig.json
{
  "compilerOptions": {
    "strict": true
  }
}

Hasilnya: { "compilerOptions": { "strict": true } }

💡 Selalu aktifkan strict mode pada proyek TypeScript baru.

📝 Sekarang giliranmu

Pada konfigurasi compilerOptions di tsconfig.json, tulis opsi untuk mengaktifkan seluruh aturan pengamanan tipe ketat.

Preview