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•10mo ago

Comments

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

Skills Manager – manage AI agent skills across Claude, Cursor, Copilot

1•evergreenxx•1m ago•0 comments

Orange Drone Guardian: Europe's first anti-drone as-a-service solution goes live

https://www.orange-business.com/en/press/orange-business-launches-orange-drone-guardian-europe-fi...
1•amokrane-tamine•3m ago•1 comments

New app provides secure messaging service for [Belgian] public sector employees

https://www.vrt.be/vrtnws/en/2026/03/18/new-app-provides-secure-messaging-service-for-public-sect...
1•teekert•3m ago•0 comments

New Restaurant Tool

1•EatElla•4m ago•1 comments

Bogliasco Center

https://www.bfny.org
2•gone35•5m ago•0 comments

How is Generative AI changing the traditional test automation lifecycle?

1•allenmatthew•5m ago•1 comments

Show HN: Process mining for AI agent systems

https://github.com/ClemenceChee/AgentFlow
1•clemencechee•6m ago•0 comments

Show HN: PingCRM – Open-source personal networking CRM

https://github.com/sneg55/pingcrm
1•sneg55•8m ago•0 comments

Show HN: Lexicon – Write complex legal contracts in Markdown

https://lexicon.esq
1•RichEO•9m ago•0 comments

Show HN: Primatomic – Managed event sourcing with WASM fold functions

https://primatomic.com/
1•ptkenn•10m ago•0 comments

Show HN: A graffiti font generator that runs in the browser

1•iamouyang•11m ago•0 comments

Apple can delist apps "with or without cause," judge says in loss for Musi app

https://arstechnica.com/tech-policy/2026/03/judge-upholds-apple-delisting-of-free-musi-app-that-s...
3•AndrewDucker•14m ago•0 comments

Show HN: Oosmetrics – growth, acceleration, and originality for 300K+ OSS repos

https://oosmetrics.com
1•alessandroflati•17m ago•0 comments

The worst volume control UI in the world

https://uxdesign.cc/the-worst-volume-control-ui-in-the-world-60713dc86950
3•andsoitis•19m ago•0 comments

AI job layoffs are here: it's time to revive the push for shorter working hours

https://www.theguardian.com/commentisfree/2026/mar/16/ai-job-layoffs-push-for-shorter-working-hours
4•robtherobber•25m ago•0 comments

Ask HN: What's the best Substack essay you've ever read?

1•readingqueue•25m ago•0 comments

Can LLMs Play the Game of Science?

https://huggingface.co/spaces/huggingface/eleusis-benchmark
1•rzk•25m ago•0 comments

Why can't he get funding and support?

https://xcancel.com/VictorTaelin/status/2032153722264928583#m
1•hmokiguess•28m ago•2 comments

2025 Turing Award for quantum information science

https://awards.acm.org/about/2025-turing
2•srvmshr•32m ago•2 comments

The Research Behind Our Auto-SLM Generator

https://neurometric.substack.com/p/the-research-behind-our-auto-slm
1•robmay•33m ago•0 comments

Amiga DevBench connects a modern host machine to an emulated (or real) Amiga

https://github.com/geekychris/amiga_mcp
1•doener•37m ago•0 comments

Rob Pike's 5 Rules of Programming

https://www.cs.unc.edu/~stotts/COMP590-059-f24/robsrules.html
10•vismit2000•42m ago•0 comments

Octigen vs. Gamma: Why Native PowerPoint Matters More Than You Think

https://octigen.com/blog/posts/2026-03-17-gamma-alternative/
4•mrgraziani•42m ago•0 comments

WhaleIndex – Interactive ocean visualization of the billionaires

https://whaleindex.vercel.app
3•albertsimondev2•42m ago•1 comments

Open Ears, Open Mind

https://herbertlui.net/open-ears-open-mind/
2•herbertl•43m ago•0 comments

Swapping batteries for hydrogen gives drones a whole new range

https://norwegianscitechnews.com/2026/03/swapping-batteries-for-hydrogen-gives-drones-a-whole-new...
4•giuliomagnifico•44m ago•0 comments

Loft – a statically typed language where null propagates instead of crashes

https://github.com/jjstwerff/loft
2•jjstwerff•44m ago•1 comments

Kagi is contemplating the removal of the assistant from its professional tier

https://kagifeedback.org/d/10116-kagi-assistant-standalone-subscription
4•EbNar•45m ago•1 comments

Affirm: Growth Affirmations

https://play.google.com/store/apps/details?id=com.happyverse.affirmations&hl=en_IN
2•MAHIMASETH26•48m ago•1 comments

The Film Experience (2013)

https://ocw.mit.edu/courses/21l-011-the-film-experience-fall-2013/
3•num42•49m ago•1 comments