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/

Ask HN: Best Practices for Agent Airgapping?

1•bmau5•1m ago•0 comments

Ask HN: App for clean movie/TV shorts?

1•dev181•2m ago•0 comments

How an Electrician from Kentucky Built an AI Startup with Claude

https://twitter.com/vivilinsv/status/2031826324667711774
1•pretext•2m ago•0 comments

Who's a Better Writer: A.I. Or Humans? Take Our Quiz

https://www.nytimes.com/interactive/2026/03/09/business/ai-writing-quiz.html
1•A_Duck•4m ago•0 comments

Show HN: MaximusLLM, Breaking transformer's O(N^2) and O(V) scaling bottlenecks

https://github.com/yousef-rafat/MaximusLLM/tree/main
1•yousef_g•5m ago•0 comments

Show HN: We built a billion row spreadsheet

https://rowzero.com
1•breckognize•5m ago•0 comments

Indiehacking: Lessons from 9K USD in Facebook Ad Spend [video]

https://www.youtube.com/watch?v=xoe_l67ZReU
2•mesmertech•6m ago•1 comments

Show HN: Thermal Receipt Printers – Markdown and Web UI

https://github.com/sadreck/ThermalMarky
1•howlett•6m ago•0 comments

Harness Engineering for Coding Agents

https://www.humanlayer.dev/blog/skill-issue-harness-engineering-for-coding-agents
2•0xblacklight•6m ago•0 comments

Amazon AI Outage Financial Times Correction

https://www.aboutamazon.com/news/company-news/amazon-outage-ai-financial-times-correction
2•super_linear•7m ago•0 comments

Bike and walking trails lose millions under Trump

https://rhodeislandcurrent.com/2026/03/13/repub/bike-and-walking-trails-lose-hundreds-of-millions...
1•chmaynard•9m ago•0 comments

Xnxx

1•zhhshs•9m ago•0 comments

Show HN: Re-imagine photo albums with NanoBanana

https://github.com/hbmartin/imagemine
1•hmartin•10m ago•0 comments

Darn Grid Shader (Yet). For as long as I've been writing

https://bgolus.medium.com/the-best-darn-grid-shader-yet-727f9278b9d8
1•signa11•11m ago•0 comments

Designing AI agents to resist prompt injection

https://openai.com/index/designing-agents-to-resist-prompt-injection/
2•gmays•11m ago•0 comments

How to Shut Down Meta

https://blog.zgp.org/how-to-shut-down-meta/
2•speckx•11m ago•0 comments

Mozilla Data Collective

https://datacollective.mozillafoundation.org/datasets
1•abetusk•12m ago•0 comments

Your Brain Is a Ball of Electric Spaghetti

https://machinecreativity.substack.com/p/your-brain-is-a-ball-of-electric-spaghetti
1•benjismith•12m ago•0 comments

Show HN: DKLS23 2-of-2 threshold ECDSA signature ceremony visualized

https://github.com/DisplaceTech/tss-ceremony
1•eamann•13m ago•0 comments

Elon Musk pushes out more xAI founders as AI coding effort falters

https://www.ft.com/content/e5fbc6c2-d5a6-4b97-a105-6a96ea849de5
2•merksittich•14m ago•0 comments

OVH forgot they donated documentation hosting to Pandas

https://github.com/pandas-dev/pandas/issues/64584
73•nwalters512•15m ago•11 comments

PDF Association's press release: Accessible math in PDF – finally

https://www.latex-project.org/news/2026/03/05/PDFA-press/
2•serhack_•15m ago•0 comments

MCMU a utility to update Minecraft mods

https://pypi.org/project/mcmu/
1•JosiahJarvis•15m ago•0 comments

Two KC-135s tankers were involved in fatal crash over Iraq

https://www.airandspaceforces.com/six-airmen-confirmed-dead-kc-135-crash-iran/
1•cf100clunk•16m ago•1 comments

Acme: The Un-Terminal

https://www.danielmoch.com/posts/2025/01/acme/
1•signa11•16m ago•0 comments

Semi-Automated Code Reviews with Claude Code at Work

https://olshansky.info/posts/2026-03-10-how-we-automate-tests-for-the-grove-api
1•Olshansky•16m ago•0 comments

Show HN: Chrome extension that detects past website breaches

https://chromewebstore.google.com/detail/digital-shield-all-in-one/pkonihncnkmbejhhjadaognganhinnhc
1•shwn2989•17m ago•0 comments

PocketSSH: A pocket-sized ESP32-based SSH terminal

https://github.com/0015/PocketSSH
1•lnyan•18m ago•0 comments

1,900-year-old double Scythian burial in Ukraine contains toxic red mineral

https://www.livescience.com/archaeology/1-900-year-old-double-scythian-burial-in-ukraine-contains...
1•Brajeshwar•18m ago•0 comments

Show HN: OpenClaw docs in Japanese, now open source

https://openclawdoc.org
1•mixfox•19m ago•0 comments