frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•10mo ago

Comments

bastawhiz•9mo ago
Is this a problem that people actually have?
xeromal•9mo ago
Fun side project man!
primitivesuave•9mo ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•9mo ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•9mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•9mo ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•9mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Jargonism: A Business English Dictionary

https://jargonism.com
1•hliyan•2m ago•0 comments

AI writing just isn't good enough – and if you're using it, everyone can tell

https://www.theglobeandmail.com/opinion/article-ai-writing-just-isnt-good-enough-and-if-youre-usi...
1•paulpauper•3m ago•0 comments

Secretary of Defense bans military from attending Ivy League Schools

https://www.foxnews.com/politics/hegseth-bans-military-attending-princeton-columbia-other-elite-u...
1•hmokiguess•3m ago•0 comments

Show HN: Mdspec.dev – open-source spec management platform for technical teams

https://mdspec.dev
1•zameermfm•4m ago•0 comments

If A.I. Is a Weapon, Who Should Control It?

https://www.nytimes.com/2026/02/28/opinion/artificial-intelligence-trump-hegseth-anthropic.html
1•paulpauper•4m ago•0 comments

What Your DNA Reveals About the Sex Life of Neanderthals

https://www.nytimes.com/2026/02/26/science/human-evolution-neanderthal-sex.html
1•paulpauper•4m ago•0 comments

Show HN: Which VCs are Tier 1?

https://vc-compare.vercel.app/
1•nezaj•6m ago•0 comments

Last Year in Container Security

https://nanovms.com/blog/last-year-in-container-security
2•valyala•6m ago•0 comments

Should AI chatbots have ads? Anthropic says no

https://arstechnica.com/ai/2026/02/should-ai-chatbots-have-ads-anthropic-says-no/
1•joozio•7m ago•0 comments

Agentic Engineering – Choosing the Right Level of Guidance

https://potocki.dev/posts/agentic-engineering-choosing-the-right-level-of-guidance/
1•tazer•8m ago•0 comments

GPL as the best licence

https://blog.hansenpartnership.com/gpl-as-the-best-licence-governance-and-philosophy/
1•lr0•8m ago•0 comments

Show HN: AIQuotaBar – See Claude/ChatGPT usage limits in your macOS menu bar

https://github.com/yagcioglutoprak/AIQuotaBar
2•toprak123•10m ago•0 comments

FreeBSD Home NAS, Part 14: Logs with VictoriaLogs and Alerts with VMAlert

https://rtfm.co.ua/en/freebsd-home-nas-part-14-logs-with-victorialogs-and-alerts-with-vmalert/
1•setevoy•10m ago•0 comments

Increase of AI bots on the Internet sparks arms race

https://www.wired.com/story/ai-bots-are-now-a-signifigant-source-of-web-traffic/
1•joozio•10m ago•0 comments

Show HN: Name-classifier – infers attributes about a person from a name

https://github.com/douglas-larocca/name-classifier
2•defgeneric•11m ago•0 comments

Fluux Messenger 0.13.2 – A Modern Cross Platform XMPP Client

https://github.com/processone/fluux-messenger/releases/tag/v0.13.2
1•neustradamus•11m ago•0 comments

Walt Disney's Relationship with Money (2014)

http://reflectionsonwalt.blogspot.com/2014/05/walts-relationship-with-money.html
1•spking•12m ago•0 comments

DeepSeek to release new AI model next week in new challenge to US rivals

https://www.ft.com/content/e3366881-0622-40a7-9c34-a0d82e3d573e
3•maxloh•13m ago•0 comments

Can the Internet Be Saved?

https://lareviewofbooks.org/article/tim-berners-lee-unfinished-story-world-wide-web/
2•wigwamnh•15m ago•0 comments

Ask HN: Is the 'natural language analytics' unsolved or just unsexy?

1•esawyer•16m ago•0 comments

Show HN: Voice-coded a Doom-scroll Hacker News (Twitter-style feed)

https://www.youtube.com/watch?v=RRF-F5jDS50
2•imprisonedmind•17m ago•0 comments

Against Query Based Compilers

https://matklad.github.io/2026/02/25/against-query-based-compilers.html
2•birdculture•21m ago•0 comments

Exostosis

https://en.wikipedia.org/wiki/Exostosis
1•treetalker•22m ago•0 comments

Flip Distance of Convex Triangulations and Tree Rotation Is NP-Complete

https://arxiv.org/abs/2602.22874
1•nill0•24m ago•0 comments

Show HN: GitShow Repo Showroom – a landing page for any GitHub repo

2•ofershap•25m ago•0 comments

Rare Roman lead ingots found by metal detectorists in Ceredigion

https://www.bbc.com/news/articles/c8xy52wndx1o
1•speckx•25m ago•0 comments

Premier League to launch direct streaming in Singapore

https://www.espn.com/soccer/story/_/id/48044798/premier-league-launch-direct-streaming-premier-le...
1•woldemariam•25m ago•0 comments

Dave's Book Review for the Art of Doing Science and Engineering

https://ratfactor.com/b/the-art-of-doing-science-and-engineering
1•zdw•25m ago•0 comments

Show HN: Lightweight, S3-compatible object storage server with built-in web dash

https://github.com/eniz1806/VaultS3
2•open_source_new•26m ago•0 comments

CSP for Pentesters: Understanding the Fundamentals

https://www.kayssel.com/newsletter/issue-20/
3•zdw•29m ago•0 comments