Song Gao
Song Gao
**TypeScript Version:** 4.0 **Search Terms:** **Code** ```ts repro interface A { type:'A' } interface B { type:'B' } function assert(x:any) :asserts x is A|B{ } function foo(x: any): any {...
 As we could see, regular expression is colored rather than normal string. However, if we run command "Inspect Editor Token and Scopes" of VSCode(ctrl+shift+P), we could notice that the...
There is almost only code in this repo, but it's 600MB+ for a full clone, why it's so large? If it's a historic mistake, is it possible to fix it(I...
**What steps did you take and what happened:** [A clear and concise description of what the bug is.] 1. Create config, so that I got an environment variable from k8s...
## What does this PR do Fix #2323 Change the signature of `ptrace::write` and `ptrace::write_user` to make them safe ## Checklist: - [x] I have read `CONTRIBUTING.md` - [x] I...
For now, the whole impl of write is ``` rs pub unsafe fn write( pid: Pid, addr: AddressType, data: *mut c_void, ) -> Result { unsafe { ptrace_other(Request::PTRACE_POKEDATA, pid, addr,...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior ``` js semver.valid('1.2.3-00') // 'null' semver.valid('1.2.3+00') // '1.2.3' ``` However, according...
```ts function foo(a, _b){ } ``` For `foo`, tsc will treat `_b` as used, which means, if you enable config `noUnusedParameters`, there will be an error on `a`, but no...
Use base64 to fix #72 However, this is a breaking change, we could not read the origin data any more. Should we also bump INDEX_VERSION? And what about migration? Maybe...
`hex` does not got an update for 3 years, `const-hex` aims to be a drop-in replacement for the [hex](https://crates.io/crates/hex) crate and according to its benchmark, it's much more faster. So,...