TypeScript-Handbook
TypeScript-Handbook copied to clipboard
Deprecated, please use the TypeScript-Website repo instead
> When exporting a module using `export =`, TypeScript-specific `import module = require("module")` must be used to import the module. https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require I'm confused about this statement, because `import * as...
In this handhook, the module resolution is that:  but in the real project, there is no node_modules/@types/moduleB.d.ts, it only has a node_modules/@types/moduleB directory,  it is confused that resolution...
The migrating to ts guide suggests awesome-typescript-loader for use with webpack. This is no longer maintained. Webpack recommend using ts-loader. Sources: [awesome-typescript-loader](https://github.com/s-panferov/awesome-typescript-loader) [webpack docs](https://webpack.js.org/guides/typescript/)
For this sample comparing to type predicates: ```typescript if (isString(str)) { return str.toUppercase(); } ``` In this case, I believe you meant to put the correct method `str.toUpperCase();` on line...
Text on lines 60-62 format didn't to appear to be within the template string itself. Found this issue on the typescript website when searching the docs. I will create a...
https://github.com/microsoft/TypeScript-Handbook/blame/master/pages/Advanced%20Types.md#L500 ```ts type LinkedList = T & { next: LinkedList }; interface Person { name: string; } var people: LinkedList; var s = people.name; var s = people.next.name; var s...
TypeScript is a great language for developing server-side applications that run on Node.js, and for developing IoT applications that run on Node.js on embedded devices. But getting started is difficult...
https://github.com/microsoft/TypeScript-Handbook/blob/master/pages/release%20notes/TypeScript%203.7.md#nullish-coalescing I know this was only given as an example, but there's a small mistake: # Screenshot:  # What is wrong? It says that `let volume = localStorage.volume ||...
https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters the type of `this.suits[pickedSuit]` is `string`, not `any` as it described check [playground](https://www.typescriptlang.org/play/index.html?ssl=1&ssc=1&pln=18&pc=62#code/DYUwLgBAJiDGDWEC8EDeBYAUBHEDOArgJZh4BcEA2gEQAWIAhgE6nUA0E1eADgzHu06xgBAEYCO1KEQYBbAPYA7KAIC6bLLgixmKigEEmTBgE8AFAFYATAEoN2XLCaMwIAMK6ACkQQgmFADMCRVgwIiUzGzRNLVwAejiIADkAeQAVAFEKMHoIYCJFEAhREGB5AHcIIjwIRQqIBkUGo3qgkLClDgZgMvKCgHMIAhqweW0GbjACZwgAchzq2YgmIn7aSHpnGNjl8GmmyOQAPmiHHa1QSG4feBAoDyYoZAgAWQYcgDoAsvkmMzfPsZlPJZIcAFQQaw2ADc23OOEuEGuvigAGViJAUADaF8fn9kbd7roIIkAIwAZhhWDh8OcUyYTVQhBI2Vo1Q+zNIlAJd3RJHU40eFB5RMeEAApBAKQBfWFnWLSuGKzDKrCInSPby+JjPGAID5OFzuLw3PyROWIkUPJ4oDVQLW3P5UzBYbp+MBmah2ijUCAAaiRptFUANxIDvvkAU4-sDKOtHIxMKAA)
At the moment there is not even a single trace of `unknown` in the Handbook, and the only official source of information about it is https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#new-unknown-top-type