[[Vite]]で[[TypeScript]]に対応したプロジェクトを作る方法。
## TypeScript対応について
https://vitejs.dev/guide/features.html#typescript
**`.ts`ファイルの[[トランスパイル]]はするが型チェックは行わない**
> Vite only performs transpilation on `.ts` files and does **NOT** perform type checking.
型チェックは以下のような方法でやってほしい。
- `tsc --noEmit` または [[noEmit (tsconfig)|noEmit]]オプションの指定
- [[IDE]]の機能
また、[[const enums]]や[[implicit type-only imports]]の機能は利用できない。 [[tsconfig.json]]の`compilerOptions`で[[isolatedModules]]を指定すると、警告を出せる。
## プロジェクト作成
https://vitejs.dev/guide/
```
npm init @vitejs/app vite-use --template vue-ts
```