Chet Corcos
Chet Corcos
I think we could easily come up with some conventions, don't you? - empty line after imports ``` import x from "x" function blah() {} ``` - empty line around...
Exactly. And I think when coding in a large organization, the less ambiguity the better :)
I just had an issue where we refactored a function that called `parent.close()` and `parent` wasn't in scope anymore. It causes electron to freeze with no errors anywhere. What a...
For now, I just have a post-install script that rewrites type definition files for malicious files. ```ts rewrite("node_modules/@types/jest/index.d.ts", str => { return str .replace(/declare const/g, "export const") .replace(/declare var/g, "export...
Any progress or plans on this issue @ahejlsberg @RyanCavanaugh? This is still holding us back on TS 3.4 😭 From what I understand, the only workaround is a bunch casting...
Probably worth mentioning in the documentation somewhere too
``` ❯❯❯ time npm run build > [email protected] build > ts-node src/tools/buildSrc.ts + mkdir -p build Wrote build/preload.js (0B, 9.52ms) Wrote build/main.js (0B, 81.36ms) Wrote build/renderer.js (0B, 98.20ms) npm run...
My unit tests are 7.8x faster too! ``` ./node_modules/.bin/mocha -r 'ts-node/register' './src/**/*.test.ts' --verbos 12.32s user 0.41s system 215% cpu 5.915 total ./node_modules/.bin/mocha -r ./esbuild-register.js './src/**/*.test.ts' 1.58s user 0.38s system 85%...
This is my `esb-node` script... ```sh #!/bin/bash node -r ./esbuild-register.js "$@" ```
Apparently this is pretty much the same thing... https://github.com/esbuild-kit/tsx/