Mohamed Hegazy

Results 54 comments of Mohamed Hegazy

also checkout https://github.com/Microsoft/TypeScript-Node-Starter

feel free to send a PR to change it to `name`

>The reason it needs to be underscored is that we need some name for the backing field. What would you call it otherwise? [`name` instead of `_fullName`](https://github.com/Microsoft/TypeScript-Handbook/issues/547#issuecomment-322338589)?

@DanielRosenwasser how do you want track fixing this? i have found it annoying too.

> How can I mixin 2 classes like this? You can not mix in a two classes with constructors that have logic like the ones above. at run time only...

I can not speak for other documentation authors, or other teams using TS. all what i can take to is the intentions behind this handbook. The handbook is meant as...

the issue is not type guards, since the type of the map does not change between he has and the get calls. the issue is relating two calls. you want...

the alternative is to change the definition of Map, to be less strict, and assume that users will always call has appropriately.

My main concern is that this is not ES6 compliant. ES6 does not talk about importing non-code modules. So this code is not really valid ES6 and will not work...

This is part of the module resolution logic, so we have to add it in the core.