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

Comments

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

Postcards Connecting the World – Postcrossing

https://www.postcrossing.com/
1•Tomte•1m ago•0 comments

New digital hall passes track bathroom breaks, gather data in NYC schools

https://gothamist.com/news/new-digital-hall-passes-track-bathroom-breaks-gather-data-in-nyc-schools
1•gnabgib•5m ago•0 comments

Show HN: Mrg – Clean miscellaneous files created by macOS

https://github.com/ilotoki0804/mrg
1•ilotoki0804•5m ago•0 comments

Review into mental health conditions, ADHD and autism: interim report

https://www.gov.uk/government/publications/independent-review-into-mental-health-conditions-adhd-...
1•irickt•6m ago•1 comments

New microwave frying technique could make French fries much healthier

https://www.sciencedaily.com/releases/2026/04/260402042803.htm
2•AdmiralAsshat•6m ago•0 comments

Show HN: Run Claude Code autonomously inside your Docker Compose stack (OSS)

https://github.com/sayil/dangerously
1•sayil•6m ago•0 comments

DiscoDB – Relational database stored 100% in a Discord guild

https://github.com/lasect/discodb
1•jedeusus•8m ago•0 comments

Staff SWE and Staff DS Roles at Pomelo Care

https://www.pomelocare.com/
1•liaskevofilax•9m ago•0 comments

We Built a Language for AI Pipelines

https://2389.ai/posts/why-we-built-a-language-for-ai-pipelines/
1•harper•10m ago•0 comments

Show HN: Large scale hallucinated citation problem in published literature

https://www.nature.com/articles/d41586-026-00969-z
1•cyclecycle•10m ago•0 comments

Tcpdump Is the Network Debugging Tool You Should Have Learned Years Ago

https://keninkujovic.com/blog/tcpdump
2•speckx•10m ago•0 comments

Web 0.1 (2006)

https://thedailywtf.com/articles/web_0_0x2e_1
1•LorenDB•13m ago•0 comments

Stolen KitKat Tracker

https://nestlecorporate.qualifioapp.com/quiz/1776864_2455/CDCG-KITKAT-STOLEN-FORM.html
2•haunter•13m ago•0 comments

Rio Terminal v0.3.0 Released

https://github.com/raphamorim/rio/releases/tag/v0.3.0
1•bobdylanswe•19m ago•0 comments

I saved a doomed Windows laptop by embracing Linux

https://www.theverge.com/tech/905946/windows-11-forced-obsolescence-linux-thinkpad
4•mariuz•20m ago•0 comments

Show HN: Arxitect – Agentic Plugin for Architecture and Design Patterns

https://github.com/andonimichael/arxitect
2•iamandoni•22m ago•0 comments

Colorado's New Speed Camera System Makes Waze Nearly Useless

https://www.motor1.com/news/792050/colorado-automated-speed-limit-cameras/
5•c420•22m ago•1 comments

War crimes are no longer shameful. That should terrify you

https://www.aljazeera.com/opinions/2026/4/3/war-crimes-are-no-longer-shameful-that-should-terrify...
26•akyuu•24m ago•4 comments

Chip-scale optical wireless system hits 362 Gbps at half the energy of Wi-Fi

https://www.spiedigitallibrary.org/journals/advanced-photonics-nexus/volume-5/issue-02/026018/Chi...
4•prabal97•25m ago•0 comments

Bid to name a street in San Francisco

https://paintastreet.com/auction
1•akalin•26m ago•0 comments

Breaking Down the Cerebras Wafer Scale Engine

https://wafer.substack.com/p/breaking-down-the-cerebras-wafer
1•matt_d•28m ago•0 comments

Why Artemis 2 is going to the moon – and what NASA hopes to find

https://www.telegraph.co.uk/news/2026/04/02/nasa-hopes-secret-to-life-on-earth-on-dark-side-of-moon/
1•Stratoscope•28m ago•1 comments

Show HN: Simple Audio Sweeper

https://github.com/PJDude/sas
1•pjdude•28m ago•0 comments

Artemis II crew take 'spectacular' image of Earth

https://www.bbc.com/news/articles/ce8jzr423p9o
2•andsoitis•29m ago•0 comments

JSONata Comes to ColdFusion: Query and Transform JSON Like a Pro

https://www.mycfml.com/articles/jsonata-comes-to-coldfusion-query-and-transform-json-like-a-pro/
1•rmason•32m ago•0 comments

Show HN: A memory layer for AI agents that organizes itself

2•srisanth_temprl•32m ago•0 comments

Fun with CSF firmware RK3588 GPU firmware

https://thepixelspulse.com/posts/fun-with-csf-firmware-rk3588-gpu-firmware/
3•mfilion•34m ago•0 comments

The need for better compiler frontend benchmarks: Carbon's benchmarking approach

https://discourse.llvm.org/t/the-need-for-better-frontend-benchmarks/90257
1•matt_d•34m ago•0 comments

Do All Languages Cost the Same? Tokenization in the Era of Commercial LLMs

https://arxiv.org/abs/2305.13707
1•Anon84•35m ago•0 comments

Metal Gear Solid V – Graphics Study

https://www.adriancourreges.com/blog/2017/12/15/mgs-v-graphics-study/
4•aggrrrh•36m ago•0 comments