Skip to content

Commit 0bb97b3

Browse files
committed
chore: changelog
1 parent b25ffe3 commit 0bb97b3

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
### Features
55

6-
* typescript support for config file ([#2973](https://github.com/vuejs/vuepress/issues/2973)) ([daa6404](https://github.com/vuejs/vuepress/commit/daa6404)) [@ULIVZ](https://github.com/ULIVZ)
6+
* Typescript Support for Config File ([#2973](https://github.com/vuejs/vuepress/issues/2973)) ([daa6404](https://github.com/vuejs/vuepress/commit/daa6404)) [@ULIVZ](https://github.com/ULIVZ)
77

8+
> For more information please head [VuePress 1.9](./changelog/1.9/index.md).
89
910

1011
## [1.8.3](https://github.com/vuejs/vuepress/compare/v1.8.2...v1.8.3) (2021-12-20)
File renamed without changes.

changelog-unpublished/1.9/assets/1.9-official-plugin-options.png renamed to changelog/1.9/assets/1.9-official-plugin-options.png

File renamed without changes.

changelog-unpublished/1.9/assets/1.9-official-plugin-tuple-usage.png renamed to changelog/1.9/assets/1.9-official-plugin-tuple-usage.png

File renamed without changes.
File renamed without changes.
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# TypeScript Support for Config file
1+
# VuePress 1.9
22

33
## Overview
44

5+
VuePress 1.9 introduced full TypeScript Support for Config file:
6+
57
![](./assets/1.9-overview.png)
68

79
## Features
@@ -30,7 +32,7 @@ export default defineConfig({
3032
});
3133
```
3234

33-
### `Typed` Theme Config
35+
### Type Inferences for `Theme`
3436

3537
By default, `defineConfig` helper leverages the theme config type from default theme:
3638

@@ -65,7 +67,7 @@ export default defineConfig4CustomTheme<MyThemeConfig>(
6567
},
6668
```
6769
68-
### Type Inferences for Official Plugins
70+
### Type Inferences for `Official Plugins`
6971
7072
From now, you’ll be able to enjoy the type prompt of the official plugins:
7173
@@ -75,8 +77,6 @@ Options of the official plugins certainly have type prompts, **Both [Tuple Style
7577
7678
- Tuple Style:
7779
78-
![](./assets/1.9-official-plugin-options.png)
79-
8080
```ts
8181
import { defineConfig } from 'vuepress/config'
8282

@@ -92,6 +92,8 @@ export default defineConfig({
9292
})
9393
```
9494
95+
![](./assets/1.9-official-plugin-options.png)
96+
9597
- Object Style:
9698
9799
```ts

0 commit comments

Comments
 (0)