TypeScript-Handbook
TypeScript-Handbook copied to clipboard
Deprecated, please use the TypeScript-Website repo instead
The example code of "[Using Type Parameters in Generic Constraints](https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Generics.md#using-type-parameters-in-generic-constraints)" in "Generic" does not run. The following error is shown. > 'Type 'U[keyof U]' is not assignable to type 'T[keyof...
The [mixins](https://www.typescriptlang.org/docs/handbook/mixins.html) page should be updated to reflect that we now support [intersection classes](https://blogs.msdn.microsoft.com/typescript/2017/02/02/announcing-typescript-2-2-rc/).
A TOC of section headings would help readers greatly.
There was a misunderstanding about string indexers on [Stack Overflow](https://stackoverflow.com/questions/58186283/why-do-string-index-signatures-enforce-that-all-properties-match-their-return-ty). [The docs](https://www.typescriptlang.org/docs/handbook/interfaces.html#indexable-types) should compare `obj.property` with `obj[someValue]` instead of `obj["property"]` to better illustrate why property types should match the indexer...
I use this tutorial from time to time when I need to create a new project. https://www.typescriptlang.org/docs/handbook/react-&-webpack.html I ran through it today. There were two problems. 1. webpack now gets...
From my tweet, where I suggested that it would be beneficial to have a Handbook page on Soundness: https://twitter.com/karlhorky/status/1146687994142842880 My initial top-of-my-head suggestions in the tweet were to include at...
From the .md file: ``` The `never` type is a subtype of, and assignable to, every type; however, *no* type is a subtype of, or assignable to, `never` (except `never`...
Regarding [the Object subsection](https://github.com/microsoft/TypeScript-Handbook/blob/master/pages/Basic%20Types.md#object) of the Basic Types section of the handbook. The last line in the example says it should error out, but when compiled, there is no error....
## Suggestion I would like to see your page https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html#supported-jsdoc updated to reflect what the proper format is for comments when annotations are in use. ## Examples The only example...
The handbook contains some decent attempts at explaining how one can write a .d.ts file for an already existing npm package. However it is quite common to find that some...