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/

Linked-Intent Development

https://linked-intent.dev/
1•EPendragon•2m ago•0 comments

Bringing USB 3 and USB4/Thunderbolt to Windows 98 to 7

https://yeokhengmeng.com/2026/10/xhci98-usb3-usb4/
1•yeokm1•4m ago•0 comments

Lula's party to file complaint against Meta over Brazil election interference

https://www.france24.com/en/americas/20261014-lula-party-meta-election-interference-brazil-runoff
1•musha68k•4m ago•0 comments

Cybersquatting

https://en.wikipedia.org/wiki/Cybersquatting
1•vismit2000•8m ago•0 comments

The Elizabeth Holmes Documentary, via the Eyes of the Reporter Who Exposed Her

https://www.nytimes.com/2026/10/17/business/theranos-fraud-elizabeth-holmes-documentary.html
1•benchtobedside•13m ago•0 comments

Faster, Better, Stronger is not a Strategy

https://serce.me/posts/2026-10-16-faster-better-stronger-is-not-a-strategy
2•SerCe•14m ago•0 comments

The future of programming – A.I. Wasserman and S. Gutz (1982)

https://dl.acm.org/doi/10.1145/358453.358459
2•vismit2000•17m ago•0 comments

Show HN: GmailClass – Chrome extension that labels Gmail emails

https://gmailclass.ticekralt.com/
1•travelingtice•22m ago•1 comments

Forget 'defund the police'. the US needs more cops

https://www.telegraph.co.uk/books/non-fiction/american-way-killing-malcolm-gladwell-review/
3•lifeisstillgood•24m ago•1 comments

At what point is software considered "vibe-coded"?

1•kaizencode•24m ago•1 comments

Show HN: A personal creative room where an idea turns into a short film

https://github.com/delexw/kiteva
1•delexw•25m ago•0 comments

Internet encyclopaedias go head to head - Wikipedia vs. Britannica (2005)

https://www.nature.com/articles/438900a
1•vismit2000•28m ago•0 comments

Metal defies the deep freeze, staying tough at -253°C

https://www.eurekalert.org/news-releases/1147527
1•XzetaU8•29m ago•0 comments

Rebrickable Lego ASML TwinScan EXE:5000 Plans

https://rebrickable.com/mocs/MOC-215601/NightHawk11991/asml-twinscan-exe5000/#
2•thebeardisred•29m ago•1 comments

The fastest DeepSeek v4.1 flash 1017 – Day 0

https://runinfra.ai/inference-api/deepseek-v4-1-flash-1017
3•OsamaJaber•31m ago•0 comments

The AI Expectations Gap

https://www.anthropic.com/research/ai-expectations-gap
1•cybermango•32m ago•0 comments

Show HN: Ankhet – a 1-hour simulated workday to replace the LeetCode OA

https://ankhet.app/candidate/session/demo
1•SpaceCypher•35m ago•0 comments

Roundtables: A Conversation with the Creator of AI-Designed Viruses

https://www.technologyreview.com/2026/10/16/1146224/roundtables-a-conversation-with-the-creator-o...
1•joozio•36m ago•0 comments

Amazon devices chief sees a future where AI devices replace the need to use apps

https://techcrunch.com/2026/10/15/amazon-devices-chief-panos-panay-sees-a-future-where-ai-devices...
1•cybermango•37m ago•0 comments

MapQuest will now show you where Flock cameras are in your neighborhood

https://www.engadget.com/2288729/mapquest-will-now-show-you-where-flock-cameras-are-in-your-neigh...
2•bookofjoe•38m ago•0 comments

Lixity – Offline stylometry and text linguistics for literary manuscripts

https://github.com/mfahsold/lixity
1•mfahsold•41m ago•0 comments

Kowloon Walled City

https://en.wikipedia.org/wiki/Kowloon_Walled_City
1•isoprophlex•41m ago•1 comments

The Decoherence Trap

https://maevyn.codes/decoherence
1•taybin•45m ago•0 comments

Sega vs. Accolade

https://en.wikipedia.org/wiki/Sega_v._Accolade
1•nivethan•45m ago•0 comments

Leap second to be scrapped from 2017

https://www.euronews.com/2026/10/16/global-timekeeping-rules-change-leap-second-scrapped-from-2027
1•throwawayffffas•46m ago•0 comments

Verse from the waste land:Rotterdam's poetic bin lorries granted cultural status

https://www.theguardian.com/world/2026/oct/15/rotterdam-poems-bin-lorries-granted-cultural-status
1•Geekette•46m ago•0 comments

Levyra 2.6.9 New Android widgets, customizable UI and better playback

https://github.com/LUC4N3X/Levyra-deepsound
1•LUC4N3X•51m ago•0 comments

Astronomers discover the first ever green star

https://www.space.com/astronomy/stars/astronomers-discover-the-1st-ever-green-star-a-cosmic-zombi...
4•cybermango•54m ago•0 comments

Softmap – readable flow map for Golang projects

1•aibolorazbekov•55m ago•0 comments

Meta to Every Business User: Nice Website You Got There

https://gizmodo.com/meta-to-literally-every-business-user-nice-website-you-got-there-2000827266
2•theanonymousone•56m ago•0 comments