HackerTrans
TopNewTrendsCommentsPastAskShowJobs

acdibble

no profile record

Submissions

Use Universal Clipboard to copy and paste between your Apple devices

support.apple.com
2 points·by acdibble·قبل 4 سنوات·0 comments

comments

acdibble
·قبل سنتين·discuss
https://archive.ph/SOTUY
acdibble
·قبل 3 سنوات·discuss
It’ll bundle the entire V8 engine. You can expect probably close to 80mb for a hello world app.
acdibble
·قبل 3 سنوات·discuss
This is possible with type predicates, example: https://www.typescriptlang.org/play?#code/C4TwDgpgBAYg9nKBeK...

docs: https://www.typescriptlang.org/docs/handbook/2/narrowing.htm...
acdibble
·قبل 4 سنوات·discuss
HexFiend (https://hexfiend.com/) works well for files of enormous size but is only a hex editor.
acdibble
·قبل 4 سنوات·discuss
> Make ESLint type-aware. This seems to be something we keep banging our heads against -- we just don't have any way of knowing what type of value a variable contains. If we knew that, we'd be able to catch a lot more errors. Maybe we could find a way to consume TypeScript data for this?

An ESLint plugin manages to do this well[1]. Would be nice to have this functionality built in natively although you do take a performance hit because you have to run the compiler.

[1] https://typescript-eslint.io/docs/linting/typed-linting