frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y 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•1y 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•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y 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•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

OpenAI's malicious bot swarm attacked RubyGems

https://www.theregister.com/security/2026/09/14/openais-malicious-bot-swarm-attacked-rubygems/529...
1•sbulaev•3m ago•0 comments

Mouse on frontier harness with glm-5.3-flash

https://mouse.dev/blog/mouse-on-glm-5-3-flash/
1•Aeroi•4m ago•0 comments

Claude for Financial Advisors

https://claude.com/blog/claude-for-financial-advisors
1•foxtrot8672•6m ago•1 comments

Doing Everyone Else's Job

https://yosefk.com/blog/doing-everyone-elses-job.html
2•luu•9m ago•0 comments

Sloppy Joe's – The era of AI signage

https://luke.zip/posts/sloppy-joes/
2•yathern•14m ago•0 comments

The Downside of Robot Solutionism

https://www.programmablemutter.com/p/the-downside-of-robot-solutionism
2•anigbrowl•16m ago•0 comments

China says AI CEOs' call for a slowdown is 'fear mongering'

https://www.cnbc.com/2026/09/14/china-ai-slowdown-us-tech-ceos.html
3•ericmay•17m ago•0 comments

Personal Statement on AI Risk

https://docs.google.com/document/u/1/d/e/2PACX-1vQNl3SEX5IyA6d9qHjjFZN-qzGRZNFI6b63g-yu1Fy-ZYkVfC...
1•sethbannon•18m ago•0 comments

I'm not addicted to the internet or my smartphone. I'm addicted to information

https://explorator.dev/addiction/
3•jyhrow•18m ago•1 comments

Dan Selsam's Personal Statement on AI Risk

https://twitter.com/DKokotajlo/status/2099600298855829616
1•sethbannon•18m ago•0 comments

Open-source Python framework for AI agents, workflows, and automations

https://github.com/BindBrain/BindAI
2•gimkostari•18m ago•0 comments

Supreme Court Rejects Trump's Restrictions on Mail Voting

https://www.nytimes.com/live/2026/09/14/us/supreme-court-mail-voting-trump
6•mikhael•23m ago•0 comments

AI Can Be Used for Cognitive Warfare

https://thecarrierwave.substack.com/p/how-ai-can-be-used-for-cognitive
3•throwawayq3423•29m ago•0 comments

We Are All Going to Die (Just Not Necessarily Because of AI)

https://emot.substack.com/p/we-really-are-all-going-to-die-just
1•emot•30m ago•0 comments

They Walk Among US

https://www.whitehouse.gov/aliens/
2•oriettaxx•32m ago•0 comments

Hands-On Learning in the Age of AI

https://grahamdumpleton.me/posts/2026/09/hands-on-learning-in-the-age-of-ai/
1•lumpa•32m ago•0 comments

A distributed, decentred and context-sensitive neurobiology of consciousness

https://www.biorxiv.org/content/10.64898/2026.09.02.745341v1
2•jiskipper•33m ago•1 comments

Ask HN: The amount of AI bot traffic is out control?

1•flyingcoder•34m ago•0 comments

Elon Musk threatens to sue over Gibney documentary's "space lasers" claim

https://www.npr.org/2026/09/10/g-s1-142713/musk-trump-2024-lasers-space
1•hn_acker•35m ago•0 comments

S3 doesn't work the way you think [video]

https://www.youtube.com/watch?v=sRrnRVkmTsQ
1•ent101•39m ago•0 comments

Deep Learning for Cosmetics (2018)

https://medium.com/mathematical-beauty/deep-learning-for-cosmetics-2d1b427bbfa2
1•_jayhack_•40m ago•0 comments

Anthropic is in regulatory-capture financial loop

https://twitter.com/kevinnbass/status/2099626156660043891
8•762236•46m ago•1 comments

Please Apple, free us from dopamine hell with cross-app Siri automations

https://reimer.tz/blog/please-apple-free-us-from-dopamine-hell
2•reimertz•47m ago•5 comments

The Birth of Development Alpha

https://power2026.ai/development
1•nsomani•50m ago•0 comments

OSDI '26 – μShell: A Microkernel-Based FPGA Shell Architecture [video]

https://www.youtube.com/watch?v=CRy27xXDIHI
1•matt_d•52m ago•0 comments

Show HN: An open-source control plane for your company's AI agents

https://github.com/vstorm-co/agenticos
2•outageroom•54m ago•0 comments

Bottles' Founder Has Managed to Run Microsoft 365 on Linux

https://itsfoss.com/news/bottles-microsoft-365-early-look/
2•cromka•57m ago•0 comments

Daily A11y to learn one WCAG 2.2 criterion a day

https://daily-a11y.com/
1•csskarma•1h ago•0 comments

The Register of British Slave-Traders

https://britishslavetraders.org/
8•dabinat•1h ago•0 comments

Show HN: Macros with a Behringer FCB1010 MIDI Pedalboard in macOS

https://github.com/JamesRyanATX/fcbnerd
18•fretlessjazz•1h ago•0 comments