Sindre Sorhus

Results 4163 comments of Sindre Sorhus

@wyk111wyk Can you help try out 9.0.4: https://github.com/sindresorhus/Defaults/releases/tag/9.0.4

I disagree. The correct way to handle it is: ```js const id: ReturnType = window.setTimeout(console.log, 100); ```

Looks like it's intentional: https://github.com/sindresorhus/KeyboardShortcuts/issues/176#issuecomment-2361446272

Apple reversed it in macOS 15.2: https://developer.apple.com/forums/thread/763878?answerId=813718022#813718022

@gregggreg I'm well aware of `Switch`/`Case`. Like `When`, it doesn't solve the nesting problem described in the feedback report.

My workaround: https://twitter.com/sindresorhus/status/1218959711661244416 😢

@petergp Thank you so much for commenting. I finally got a chance to try out your suggested workaround and it definitely improves the situation a lot. It's still leaking, but...