Skip to content

docs: Update link & fix prop name in typescript-support.md #1030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 4, 2021
Merged
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-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const Component = defineComponent({
})
```

If you have a complex type or interface, you can cast it using [type assertion](https://www.typescriptlang.org/docs/handbook/basic-types.html#type-assertions):
If you have a complex type or interface, you can cast it using [type assertion](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions):

```ts
interface Book {
Expand Down Expand Up @@ -261,7 +261,7 @@ const Component = defineComponent({

::: warning
Because of a [design limitation](https://github.com/microsoft/TypeScript/issues/38845) in TypeScript when it comes
to type inference of function expressions, you have to be careful with `validators` and `default` values for objects and arrays:
to type inference of function expressions, you have to be careful with `validator` and `default` values for objects and arrays:
:::

```ts
Expand Down