TypeScript-Handbook
TypeScript-Handbook copied to clipboard
Deprecated, please use the TypeScript-Website repo instead
I'm not sure if it's the right place to issue it because I don't see the "Unions and Intersections" page that is present on the website: https://www.typescriptlang.org/docs/handbook/unions-and-intersections.html - in this...
The definition of [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialt) states: > Constructs a type with all properties of T set to optional. This utility will return a type that represents all subsets of a given...
I believe that in the computing the common usage of the term "source" is an input for some "target". So in the example of the section "Comparing two functions" "source"...
The current section, https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html, is huge but at the same time lacking a lot of information. Questions like https://stackoverflow.com/questions/61097030/how-to-import-custom-typings-into-a-vscode-js-project, https://stackoverflow.com/questions/51982814/reference-definition-from-ts-check-js-file etc... are not answered. Rather, one has to search github...
The handbook reads > `x` is compatible with `y` if `y` has at least the same members as `x` I believe the types should be flipped > `y` is compatible...
The previous description was: > Constructs a type by excluding/extracting from `T` all properties that are assignable to `U`. This sounds to me like Exclude and Extract would do this:...
Hey there! I'm reading Handbook's “Advanced types” chapter and there's a section describing [exhaustiveness checking](http://www.typescriptlang.org/docs/handbook/advanced-types.html#exhaustiveness-checking) which says (as I understand it) that this code shouldn't warn us at all about...
Currently (with comments added to explain the issue): ```ts function validate(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) { let set = descriptor.set; descriptor.set = function (value: T) { let type =...
Hey! I lead a TS team, and I would love to buy a bunch of physical copies of the handbook. I realize it's a living document, but it's well laid...
_From @marianoguerra on May 14, 2016 15:42_ The docs here: http://www.typescriptlang.org/docs/handbook/gulp.html adds features by steps, at some points it adds watchify to the browserify build task, then adds babel, and...