Mohamed Hegazy

Results 50 comments of Mohamed Hegazy

This example is not correct now. It should be typed as: ```ts function copyFields(target: T, source: Pick): T { for (let id in source) { target[id] = source[id]; } return...

we should also mention async generators as well as async iteration and the new --downlevelIteration

We should switch the call to; ``` ts f([1,2]); ``` to get the contextual type.

they all have anchors, they are just not link tags. e.g. http://www.typescriptlang.org/docs/handbook/basic-types.html#any takes you to the `Any` section.

> However, when types could not be found in the compilerOptions.typeRoots folders, compiler falls back to the automatic inclusion of @types packages. that is not accurate.. there are two parts...

> but also it fallback when types in typeRoots folders do not exist, i do not think this is true.

```txt c:\test\774>tree /f . │ a.ts │ package.json │ └───node_modules └───@types └───node index.d.ts inspector.d.ts LICENSE package.json README.md c:\test\774>tsc --v Version 2.9.1 c:\test\774>tsc --listFiles a.ts C:/Users/mhegazy/AppData/Roaming/npm/node_modules/typescript/lib/lib.d.ts a.ts c:/test/774/node_modules/@types/node/inspector.d.ts c:/test/774/node_modules/@types/node/index.d.ts c:\test\774>tsc --typeRoots...