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/

Atlassian's own AI assistant doesn't know Jira renamed "Projects" to "Spaces"

https://community.atlassian.com/forums/Jira-articles/Jira-Spaces-have-landed/ba-p/3117620
1•vlad-asis•21s ago•0 comments

China's Program to Keep Activists in Check

https://web.archive.org/web/20181217170219/https://www.newyorker.com/magazine/2018/12/24/chinas-b...
1•firefax•1m ago•0 comments

Breaking Execution Continuity of Agent Systems via Rollback

https://arxiv.org/abs/2608.29381
1•sbulaev•2m ago•0 comments

Holotypic Occlupanid Research Group

https://www.horg.com/
1•peterburkimsher•6m ago•0 comments

Show HN: Edify – a Windows NLE with local AI subtitles/dubbing and OpenFX

https://apps.microsoft.com/detail/9nkkk5k5s4ct?hl=en-US&gl=US
1•edify_nle•9m ago•0 comments

The US military gets its own ChatGPT today

https://www.defenseone.com/technology/2026/08/us-military-chatgpt/415719/
1•r_singh•10m ago•0 comments

Guest Posting Sites: A Practical Guide for Building Quality Backlinks

https://go.fliplink.me/view/GuestPostingSitesAPracticalGuideforBuildingQualityBacklinks
1•reviewhub•13m ago•0 comments

Trump admin shelves Cyclospora research despite record-breaking outbreak

https://arstechnica.com/health/2026/08/trump-admin-shelves-cyclospora-research-despite-record-bre...
3•khalic•17m ago•1 comments

Generating personalized certificates from Excel in the browser

https://bulkcerts.com/
1•febeee•18m ago•0 comments

Qualcomm Raising Chip Prices Starting Tomorrow

https://www.macrumors.com/2026/08/31/qualcomm-chip-price-increase/
2•tosh•18m ago•0 comments

A Response to Aeon's "How Art Invented Humanity"

https://cathalharte.ch/essay-the-truth-of-accountants.html
1•cathalharte•22m ago•0 comments

Indictments against a top extremism researcher and the SPLC

https://theconversation.com/indictments-against-a-top-extremism-researcher-and-the-splc-force-a-r...
3•osadalakmal•24m ago•1 comments

Prices of 4,923 food and drink items set to rise in September, extending trend

https://www.japantimes.co.jp/business/2026/08/31/companies/food-price-rise-september/
1•quyleanh•24m ago•1 comments

Remix 3 Release Candidate

https://remix.run/blog/remix-3-release-candidate
1•osener•26m ago•0 comments

Inevitability

https://borretti.me/article/on-inevitability
1•varjag•26m ago•0 comments

Data Science in the Age of AI

https://www.robinlinacre.com/data_science_age_ai/
1•RobinL•27m ago•0 comments

Show HN: Give your agent somewhere to think loud watch its decisions unfold live

https://github.com/softcane/agents-workbook
1•pradeep1177•29m ago•1 comments

ToolTrim, ecide which SaaS tools to keep, replace, or add

https://tooltrim.com/en
1•mblochmic•29m ago•0 comments

AI product management: Familiar enough to start, different enough to fail

https://www.leadinginproduct.com/p/ai-product-management
1•benkan•32m ago•0 comments

Proxmox VE 7.0–8.0.3: unauthenticated, single-request root auth bypass

https://blog.nathangolez.com/2026/08/proxmox-ve-7-08-0-3-unauthenticated-single-request-root-auth...
1•neeythann•32m ago•0 comments

OpenMPTCProuter v0.64.1 – multi-WAN aggregation with Multipath TCP

https://www.openmptcprouter.com/
1•OpenMPTCProuter•37m ago•0 comments

What would Steve Jobs think?

1•ethanwillis•37m ago•0 comments

Show HN: Fly By – retro biplane flying game

https://michaelteter.com/flyby.html
2•michaelteter•38m ago•1 comments

Show HN: Commit Town

https://commit-town.vercel.app/landing
1•hawkeye77787•38m ago•0 comments

Fluorescent lamps (don't) have ears

https://blog.coredump.cx/p/fluorescent-lamps-dont-have-ears
1•surprisetalk•39m ago•0 comments

Coder hit In a supply chain attack serving malicious packages

https://github.com/coder/coder/security/advisories/GHSA-vx42-ghc9-gw65
1•someniak•41m ago•0 comments

Ask HN: How fast can you ship a production ready SaaS from scratch

2•codegladiator•42m ago•0 comments

1Password Supports the Ethnic Cleansing of Europe

https://www.alilleybrinker.com/blog/1password-funds-ethnic-cleansing/
4•salzig•43m ago•2 comments

Anatomy of a scam campaign, from the point of view of a link shortener

https://casparwre.de/blog/anatomy-of-a-scam-campaign/
1•caspii•46m ago•0 comments

The Rebuilder

https://twitter.com/sabben/status/2094670635616075924
1•petervansabben•47m ago•0 comments