Results 14 comments of Aadit M Shah

Hey folks, I'm also facing the #3405 issue in my project. I'm glad to see that you're working towards resolving the tsutils issue. Thank you so much. I know it's...

What about using [custom scanners](http://zaach.github.io/jison/docs/#custom-scanners)? I have written a library called [Lexer](https://github.com/aaditmshah/lexer) in the spirit of Flex which allows you to match arbitrary expressions as follows: ``` javascript var Parser...

I have enough time to implement a regex engine in pure JavaScript. What is the interface required to integrate a regex engine with jison? Is it the same interface that's...

@KotlinIsland Added support for return type specialization in my PR, #124. It also correctly handles `toJSON`, constructor functions, and symbols. @sstur I also copied your test cases into my PR...

@denis-sokolov Shameless plug. Consider using [`better-typescript-lib`](https://github.com/uhyo/better-typescript-lib) instead of `ts-reset`. [Version 2.3.0](https://github.com/uhyo/better-typescript-lib/blob/master/CHANGELOG.md#v230) of `better-typescript-lib` added strong type definitions for `JSON.parse`, `JSON.stringify`, and `fetch().json()`. It also added better type definitions for promises....

> > No offense to him. He's a brilliant guy [...] > > Hmm, I wonder if the very next thing will be an offense 🤔 > > > he's...

I created a PR, #123, for a type-safe and sound version of `JSON.parse` if anybody is interested. I also wrote a good description of the problem statement and the solution...

@mattpocock Consider the following [playground example](https://www.typescriptlang.org/play?noUncheckedIndexedAccess=true&noPropertyAccessFromIndexSignature=false#code/KYDwDg9gTgLgBDAnmYcBSBnCA7AClASwFsCYCA3VAXjgxkOwHM4AfObAVyICNgpW43CBAA2wAIbYBnESIDcAKAWhIsBMlSYcANXEiO1dFjyESZSgK3YA8twBWwAMbw2V3fuABtALqLl4aHgkFCMcWwdnOBoAbzhPAGtgRAAuWnoCJm9Utz0DOABfPxVA9RCrAEERRmBuKHEAHnKAPijQk2JSClQ2ACUnaAATeroGRgAaOGaBcp8igLVgzWMACVEBvnqAaThQGGBsAYw00Ympmj7HQa2Jiqqausampr91xxFxKFRGEQhuPThogo4HAMnsoAAzcSOTQAZWsADkAUDgXAwB8MMAABR7EAwVIjDKMACU2WM7gMfhRqPRwEarQ42Hi2AgAHdsE1MciqTi8cdCWMuSjPuQulBUlsdrj9oc+UwOYLuQALAgYUk4VYidZQa6TJoCqlUxIpOCbfUG4HkXLANXYSrVWoNZpmqlEqItcrOuAkyaKYH5BT+hSXbB0OCfDAcETwGhoOHwgB0aKgGMxAHJovlU0SlARwXBsRoIHnw5Ho1QaKnfhEYKm4AAyOth4ARqP1xuplmK8R7ShQWsZJstmCuwHAgD0Y7gAElaIqIJGBoIvsAYGQmHBxBwYBBLkQwGI9nBwdA4B2uz2+KnkRONwdbzsoFAT8f+KnxCyBvE7JIP1-sFfgUWOAAFFwCcGB6gAFUlPYDiOegDBaGhIN9UpUGAgBHDg9HqAANCYAE0kPzKCOVdKgWmg3ZpSOXC4AAfjgABGOBUgAJldai4LgUjMXIyiYJouACIY5jWLgNjBUYhDgEFVJIREDFKTgYNQ07btgF7VoSyjeN1IvKBkVU+B30-b9sF-OwpBoHSYHjUyvx-MzsCUQCNAQZsYCOGhPEFUCUGcepMOwkR6kWIs4H0zS+BuMkrSeT1-PAoKsJw8K8wc8zLOwWKdCtAQGXWcEMmAAYnmRXwAyAA). With `noUncheckedIndexedAccess` you can see that the type of `result.whatever` is just `JsonValue`, but the type of `result.awdkjanwdkjn` is `JsonValue | undefined`. You may...

> I tacked this and couldn't get to a perfectly working implementation. :innocent: As mentioned above, we should only narrow in then-branch of `include` checks but it doesn't seem currently...

Oh, wait. No, I'm mistaken. Didn't see that `strarr` is empty here. Nevermind. Disregard my previous comment.