Skip to content

Commit

Permalink
chore: update link attribute (#2800)
Browse files Browse the repository at this point in the history
* chore: update link attribute

* chore: update
  • Loading branch information
btea committed Feb 11, 2023
1 parent 4d87a95 commit d534184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/testing-types.md
Expand Up @@ -41,7 +41,7 @@ expectTypeOf(1).toEqualTypeOf<string>()

This is due to how [`expect-type`](https://github.com/mmkal/expect-type) handles type errors.

Unfortunately, TypeScript doesn't provide type metadata without patching, so we cannot provide useful error messages at this point, but there are <a href="https://github.com/microsoft/TypeScript/pull/40468" tatger="_blank">works in TypeScript project</a> to fix this. If you want better messages, please, ask TypeScript team to have a look at mentioned PR.
Unfortunately, TypeScript doesn't provide type metadata without patching, so we cannot provide useful error messages at this point, but there are <a href="https://github.com/microsoft/TypeScript/pull/40468" target="_blank">works in TypeScript project</a> to fix this. If you want better messages, please, ask TypeScript team to have a look at mentioned PR.

If you find it hard working with `expectTypeOf` API and figuring out errors, you can always use more simple `assertType` API:

Expand Down

0 comments on commit d534184

Please sign in to comment.