Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/guide/typescript/options-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ declare module 'vue' {

参照:

- [コンポーネントの型拡張の TypeScript の単体テスト](https://github.com/vuejs/core/blob/main/packages/dts-test/componentTypeExtensions.test-d.tsx)
- [コンポーネントの型拡張の TypeScript の単体テスト](https://github.com/vuejs/core/blob/main/packages-private/dts-test/componentTypeExtensions.test-d.tsx)

### 型拡張の配置 {#type-augmentation-placement}

Expand Down Expand Up @@ -290,4 +290,4 @@ declare module 'vue' {

参照:

- [コンポーネントの型拡張の TypeScript の単体テスト](https://github.com/vuejs/core/blob/main/packages/dts-test/componentTypeExtensions.test-d.tsx)
- [コンポーネントの型拡張の TypeScript の単体テスト](https://github.com/vuejs/core/blob/main/packages-private/dts-test/componentTypeExtensions.test-d.tsx)
2 changes: 1 addition & 1 deletion src/guide/typescript/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default defineComponent({
参照:

- [webpack のツリーシェイキングに関する注意](/api/general#note-on-webpack-treeshaking)
- [`defineComponent` の型テスト](https://github.com/vuejs/core/blob/main/packages/dts-test/defineComponent.test-d.tsx)
- [`defineComponent` の型テスト](https://github.com/vuejs/core/blob/main/packages-private/dts-test/defineComponent.test-d.tsx)

:::tip
`defineComponent()` は、プレーンな JavaScript で定義されたコンポーネントに対しても型推論を行うことができます。
Expand Down