Tsotne Nazarashvili

Results 75 comments of Tsotne Nazarashvili

> If you asked for `{ name, email }`, you are asking for an object - both at run-time and statically, you've declared a function that accepts only objects with...

type for `action.type` is `'INCREMENT' | 'DECREMENT'` and also it can be anything? since there is `default:` so correct type for `action.type` would be `'INCREMENT' | 'DECREMENT' | unknown` which...

> That's the point if this issue. It's not clear to me if you're debating or elaborating? 🙂 elaborating your issue seems to be about inferring type of `action.type` to...

@mindplay-dk that sounds like a good idea and would imply that this code ```js function concat(a, b) { if (typeof a !== "string") throw new TypeError("a must be a string!");...

`Object.keys` and `Object.entries` also give different results when prop is not there vs when prop is undefined

@trusktr we have a chat room on telegram https://t.me/hegel_js

we can add corejs and babel as environments as well so we know when polyfill is missing (or when specific polyfill is needed) also this will be good for developers...

@jarble currently hagel will infer type `(number, number) => number` for that function so there is no need to write it manually

you mean generating `.d.ts` files? i think that is not implemented yet