Rasmus Schultz

Results 546 comments of Rasmus Schultz

Let me reverse the question: Where do you see a case *for* functions that demand properties they can't access or use? 🤷‍♂️

> i understand where confusion comes from but destructuring is not part of function interface > > it's just a suger syntax I promise, I'm not confused. 😄 What you...

> you are not asking for `{ name, email }` that part is internal to the function That's a matter of interpretation. If you have a function that accepts `{...

> 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`...

> > It says `default: return state` - so it should be `'INCREMENT' | 'DECREMENT'`, but it's not. > > so why do you have default case if only `INCREMENT`...

Yeah, `default` will make the function accept anything. How about this then? ```ts function update(state, action) { switch (action.type) { case "INCREMENT": return state + 1; case "DECREMENT": return state...

@albell is this project maintained? Looks like no releases since 2016 - but also no open issues, so that could just mean it's done and the spec hasn't changed. We...

![](http://emoticons.zone/wp-content/uploads/2015/05/Skype-emoticons-tumbleweed.gif)

To others looking for a solution, this extension should do it for every console error: https://chrome.google.com/webstore/detail/javascript-errors-notifie/jafmfknfnkoekkdocjiaipcnmkklaajd?hl=en