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•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/

Never Loose a Toot Again

https://hister.org/posts/never-lose-a-toot-again
1•mstef•41s ago•0 comments

How the EU's DMA is making smartphones better

https://digital-markets-act.ec.europa.eu/factsheet-how-dma-making-smartphones-better-interoperabi...
1•mtomweb•1m ago•0 comments

Web Feeds in 2026: A Survey

https://mnot.net/blog/2026/feed-survey
1•rdmuser•3m ago•0 comments

Atlas – Pure Rust Inference Engine

https://github.com/Avarok-Cybersecurity/atlas
1•danborn26•7m ago•0 comments

Concord – A feature-rich TUI client for Discord, written in Rust

https://github.com/chojs23/concord
1•danborn26•7m ago•0 comments

LUKSbox – Store sensitive files in the cloud, or on shared media without

https://github.com/PentHertz/LUKSbox
1•danborn26•7m ago•0 comments

Behind the Claude Frenzy That Ate Up All the Mac Minis

https://www.bloomberg.com/news/articles/2026-05-11/why-claude-ai-agents-are-driving-record-mac-mi...
2•helsinkiandrew•7m ago•0 comments

Ontell – The smartest way to automate your WhatsApp business

https://ontell.ai
1•elmrsey•8m ago•0 comments

Tracing PostgreSQL Using eBPF and Hardware Breakpoints

https://jnidzwetzki.github.io/2026/05/08/ebpf-hw-breakpoints-postgresql.html
1•nikolay_sivko•10m ago•0 comments

Palantir's access to identifiable NHS England patient data 'dangerous', MPs say

https://www.theguardian.com/society/2026/may/11/palantir-access-nhs-england-patient-data
3•chrisjj•13m ago•0 comments

I gave Claude Code live social media data

https://fridayaiclub.com/how-to-give-claude-code-social-media-data/
2•magneticbrains•13m ago•0 comments

India to shrink zones around nuclear reactors to free up land, sources say

https://economictimes.indiatimes.com/industry/energy/power/india-to-shrink-zones-around-nuclear-r...
2•rustoo•14m ago•0 comments

How to Mark Issues in a Property Inspection Report Before Signing

https://boldsign.com/blogs/property-inspection-report-markup-before-signing/
1•Rachel_Atieno•14m ago•0 comments

OP's script shuts down every single computer in the company

https://www.reddit.com/r/sysadmin/s/7kD2rPS6yV
3•_s•14m ago•0 comments

Extremely Low Frequencies

https://computer.rip/2026-05-09-extremely-low-frequencies.html
1•sohkamyung•17m ago•0 comments

Show HN: Personal planner with workspaces, tasks, notes, calendars, journals

https://nerali.app
1•Multipassionate•18m ago•2 comments

WhatsApp Plus

https://faq.whatsapp.com/1480290710396618/?cms_platform=web
2•xethos•19m ago•0 comments

BaseLedger: An open-source API quota firewall for AI agents

https://github.com/baseledger-io/baseledger
1•minjibir•20m ago•0 comments

Show HN: Importing resources into tfstate is no longer annoying

https://tfimport.coolapso.sh/
1•coolapso•21m ago•0 comments

Content for Content's Sake

https://lucumr.pocoo.org/2026/5/4/content-for-contents-sake/
1•mooreds•21m ago•0 comments

Sony's failed war against Internet piracy may doom other copyright lawsuits

https://arstechnica.com/tech-policy/2026/05/sonys-failed-war-against-internet-piracy-may-doom-oth...
3•duxup•22m ago•0 comments

Agile in the Age of AI

https://miren.dev/blog/agile-in-the-age-of-ai
1•mooreds•22m ago•0 comments

Patterns for Reducing Friction in AI-Assisted Development

https://martinfowler.com/articles/reduce-friction-ai/
2•mooreds•24m ago•0 comments

National Academy of Sciences experts denounce Trump's NSF board purge

https://www.scientificamerican.com/article/national-academy-of-sciences-experts-denounce-trumps-n...
2•beardyw•24m ago•0 comments

I Am the VP of Workforce Transformation

https://xcancel.com/gothburz/status/2052901772520288370
2•zimpenfish•25m ago•0 comments

Show HN: Studis – Turn product photos into social media ads with AI

https://studis.io/
2•marjanatanasov•29m ago•0 comments

Analysing the Urban Attack: Insights from Soviet doctrine as a 'model checklist'

https://researchcentre.army.gov.au/library/land-power-forum/analysing-urban-attack-insights-sovie...
1•omnibrain•30m ago•0 comments

From Today, Software Engineering Is Dead

https://building138.com/from-today-software-engineering-is-dead
11•usernamed7•32m ago•7 comments

Forget the AI job apocalypse. AIs real threat is worker control and surveillance

https://www.theguardian.com/technology/2026/may/11/ai-worker-control-surveillance
4•beardyw•34m ago•1 comments

Open weights are quietly closing up – and that's a problem

https://martinalderson.com/posts/open-weights-are-quietly-closing-up/
5•birdculture•34m ago•0 comments