Skip to content

Commit

Permalink
docs: show usage with satisfies operator (#1489)
Browse files Browse the repository at this point in the history
resolve #1488

vitejs/vite@e1fb0fa の反映です。
  • Loading branch information
shuuji3 authored Jul 16, 2024
1 parent c368ebc commit 55d5819
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ export default defineConfig({
})
```

Vite は TS の設定ファイルも直接サポートしています。`vite.config.ts``defineConfig` ヘルパーと一緒に使うこともできます。
Vite は TypeScript の設定ファイルもサポートしています。`vite.config.ts` は、上記の `defineConfig` ヘルパー関数または `satisfies` 演算子とともに使用できます:

```ts
import type { UserConfig } from 'vite'

export default {
// ...
} satisfies UserConfig
```

## 条件付き設定

Expand Down

0 comments on commit 55d5819

Please sign in to comment.