Skip to content

Commit

Permalink
pep695: add typescript information
Browse files Browse the repository at this point in the history
  • Loading branch information
KotlinIsland committed Jul 22, 2022
1 parent 02962c2 commit 3430324
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pep-0695.rst
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,8 @@ combined with other type operators such as "keyof".
TypeScript uses declaration-site variance. Variance is inferred from
usage, not specified explicitly. TypeScript 4.7 introduced the ability
to specify variance using "in" and "out" keywords. This was added to handle
extremely complex types where inference of variance was expensive.
extremely complex types where inference of variance was expensive,
yet the maintainers state that is useful for increasing readability.

A default type argument can be specified using the "=" operator.

Expand Down

0 comments on commit 3430324

Please sign in to comment.