// File: tsconfig.json
{
  "compilerOptions": {
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "plugins": [
      {
        "name": "next"
      }
    ],
    "paths": {
      "baseUrl": "./",
      "@/*": ["app/*"],
      "@components": ["components/*"],
      "@config": ["config/*"],
      "@lib": ["lib/*"],
      "@providers": ["providers/*"],
      "@public": ["public/*"],
      "@styles": ["styles/*"],
      "@types": ["types/*"],
      "@api": ["app/api/*"],
      // เพิ่มส่วนที่ขาดไปเพื่อให้ตรงกับ Workspace
      "@hooks/*": ["app/hooks/*"],
      "@utils/*": ["utils/*"]
    }
  },
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
  "exclude": ["node_modules"]
}
