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/

Ideorama – a reference board for images 3D, video and sound

https://ideorama.xyz
1•kvnlst•2m ago•0 comments

Flights halted at airports across US due to air traffic control comms problems

https://apnews.com/article/flights-halted-airports-faa-f81b0904331dafad6133f291e5f531a8
2•kelnos•4m ago•1 comments

Richard Feynman and the Math of Menu Choices

https://www.alumni.caltech.edu/techer/stories/richard-feynman-and-the-math-of-menu-choices/
1•greedo•6m ago•0 comments

Robot Arm Build

https://twitter.com/farevalo27/status/2121364960718750055
1•FabianArevalo•7m ago•1 comments

FAA expands AI advice to manage air traffic congestion across US airspace

https://arstechnica.com/ai/2026/11/faa-expands-ai-advice-to-manage-air-traffic-congestion-across-...
1•u1hcw9nx•7m ago•2 comments

Starship Launch 15 Live

https://x.com/i/broadcasts/2brajgZlOKRMka
4•gibsonf1•9m ago•0 comments

My first two months with AI agents: some confident assertions

https://www.mikehermele.com/blog/first-two-months/
1•EvgeniyZh•9m ago•0 comments

National Weather Service reports nationwide radar website outage amid FAA stop

https://www.news9.com/oklahoma-city-news/national-weather-service-reports-nationwide-radar-websit...
2•galleywest200•11m ago•1 comments

PixiJS 3D Open Sourced

https://pixijs.com/blog/pixi-3d-open-beta
1•andsoitis•12m ago•0 comments

Tanker collides with river cruiser near Port of New Orleans

https://www.cnn.com/2026/11/13/us/live-news/new-orleans-cruise-ship-crash
1•robotnikman•13m ago•0 comments

Starship Flight 15 live

https://twitter.com/SpaceX/status/2121316300702056595
6•mudil•17m ago•0 comments

CallMyMac – Give your Mac a phone number, call it to listen and control it

https://callmymac.com
1•debt•19m ago•0 comments

End‑to‑End 4‑Bit Training

https://thinkingmachines.ai/blog/end-to-end-4-bit-training/
2•stokedmartin•21m ago•0 comments

Simple, Shareable Todo Lists

https://todo.link
2•joekndy•22m ago•1 comments

Live airband on all frequencies from KORS. Victoria, CA also ground stopped

https://orcasairband.com/
10•mmaunder•23m ago•0 comments

1900s How do you Wash a Kimono?

https://www.oldphotosjapan.com/photos/877/laundry-washing-clothes-meiji-19th-century-vintage-albu...
1•Matrixik•23m ago•0 comments

DSPy vs. LangGraph: AI Agent Frameworks Explained – Stanford CS329Z [video]

https://www.youtube.com/watch?v=q0Q-Hy8TTps
1•matt_d•24m ago•0 comments

Show HN: Customer Intelligence and Monetization Toolkit for Claude Code

https://github.com/Satvik-jain/customer-intelligence-toolkit
1•admiral-mini-8b•24m ago•0 comments

Counter-Recon via Edge Deception

https://divert.cloud/blog/counter-recon-via-edge-deception-to-telegram
1•mhedrick•26m ago•0 comments

When Nothing Happens

https://mikefisher.substack.com/p/when-nothing-happens
1•fagnerbrack•27m ago•0 comments

Models Are Outpacing Environment Creation

https://www.fig.inc/blog/models-are-outpacing-environment-creation/
1•pranavguru•27m ago•0 comments

Flights grounded at US airports due to air traffic control issue

https://www.theguardian.com/us-news/live/2026/nov/13/us-politics-latest-news-updates-democrats-re...
4•nephihaha•27m ago•1 comments

FAA issues nationwide ground stop for all flights

https://www.cnn.com/2026/11/13/us/live-news/flights-ground-stop-faa
4•koolba•33m ago•1 comments

Jensen Huang Hired a PR Firm Known for Handling Sex Scandals Last Year

https://www.wired.com/story/nvidia-ceo-jensen-huang-hired-a-pr-firm-known-for-handling-sex-scanda...
1•mzs•34m ago•0 comments

FAA Declares a Rare Nationwide Ground Stop

https://www.nytimes.com/live/2026/11/13/us/ground-stop-nationwide-flights-faa
5•jbegley•38m ago•1 comments

Show HN: Algorithmic MIDI Companion – Viterbi SATB Solver and Euclidean Rhythms

https://midicompanion.revisitedlabs.com/
1•ntropey•38m ago•0 comments

FAA Ground Stop timeline via their real-time data feed

https://ifrmeter.com/blog/national-ground-stop-2026-11-13
6•mmaunder•38m ago•3 comments

US Air Force says it responded to 'suspected drones' over RAF Lakenheath

https://www.bbc.com/news/articles/c6jd75geegzyo
2•10xDev•38m ago•1 comments

Bitrise reports an active security incident

https://status.bitrise.io/incidents/7055z4g9nbck
1•vocoded•39m ago•0 comments

California startup aims to turn cow manure into sustainable jet fuel

https://www.aerotime.aero/articles/california-startup-cow-manure-jet-fuel
1•rmason•39m ago•1 comments