Arnav Gosain
Arnav Gosain
@brielov were you able to figure out a solution?
Found this issue while debugging tsserver slowness in my work project – it appears that this plugin is the root cause. We want to continue using this plugin, so we...
+1, would like this as well
Here's an alternative approach: ```tsx type SuccessResult = [T, null] & { data: T; error: null } type ErrorResult = [null, E] & { data: null; error: E } type...
@henrycunh Try this ```ts type SuccessResult = { data: T; error: null; } & [T, null]; type ErrorResult = { data: null; error: E; } & [null, E]; type TryResult...
Omitting keys of Array.prototype also omits Symbol.iterator so TS thinks its no longer destructureable as an Array. (I can still see access by index though result[0]/result[1]) I personally don't care...
Spent some time exploring how to implement this. TL;DR: There are two ways: - Simulate `cmd+v` keypress using a crate like `enigo` or `rdev` - `enigo` [doesn't work well with...