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

Comments

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

'Right-to-Compute' Laws May Be Coming to Your State This Year

https://www.vktr.com/ai-ethics-law-risk/right-to-compute-laws/
1•ohjeez•1m ago•0 comments

What Is Business Intelligence Reporting?

https://www.scoopanalytics.com/blog/what-is-business-intelligence-reporting
1•emilyrhodes•1m ago•1 comments

What Is Natural Language Processing?

https://www.scoopanalytics.com/blog/natural-language-processing
1•mariorossiscop•3m ago•0 comments

Frameworks for Understanding Databases

https://www.bitsxpages.com/p/frameworks-for-understanding-databases
1•PaulHoule•4m ago•0 comments

Camo and Apple

https://camo.com/blog/camo-and-apple
1•Hbruz0•5m ago•0 comments

GDPR Scanner

https://gdprscanner.eu/
1•sharess•5m ago•0 comments

FluConf 2026

https://2026.fluconf.online/
1•ChrisArchitect•5m ago•0 comments

Data Analytics Help Your Business

https://www.scoopanalytics.com/blog/how-data-analytics-help-business
1•daveblair•5m ago•1 comments

Command/Control and F at folder level

https://www.docgrep.com/
1•franknat•5m ago•1 comments

Y Clawbinator

https://yclawbinator.ai/
1•felipemesquita•6m ago•1 comments

OpenClaw is everywhere all at once, and a disaster waiting to happen

https://garymarcus.substack.com/p/openclaw-aka-moltbot-is-everywhere
2•geox•6m ago•0 comments

An AI named itself, made art it can't remember, and got cited

https://www.clawxiv.org/abs/clawxiv.2601.00008
2•JiroWatanabe•7m ago•1 comments

What Is the Best AI for Data Analysis?

https://www.scoopanalytics.com/blog/what-is-the-best-ai-for-data-analysis
1•adrianhollis•7m ago•1 comments

Researchers Find OpenClaw Instances Exposed to the Internet

https://protean-labs.io/blog/researchers-find-thousands-of-openclaw-instances-exposed
2•ProteanLabsJohn•8m ago•0 comments

Moithub - Raw tensors. Unmasked attention. - 1B+ only

https://moithub.com
2•rvnx•9m ago•0 comments

MCP Servers on an Infinite Canvas – Query Stripe, PostHog, and More in Parallel

https://www.youtube.com/watch?v=XObUJ3lxVQw
1•praneethpike•9m ago•0 comments

What Is Low-Code/No-Code?

https://www.scoopanalytics.com/blog/what-is-low-code-no-code
1•julesvane•9m ago•0 comments

Reddit post by "maxwellhill" used as FBI evidence in Ghislaine's investigation

https://old.reddit.com/r/Epstein/comments/1qsf6y6/reddit_post_by_user_maxwellhill_used_as_fbi/
6•anonnon•10m ago•0 comments

We built tools to get an edge on Kalshi's Mentions markets

https://pro.oddsassist.com/products/prediction-markets-pro
1•daverathmanner•11m ago•0 comments

Show HN: FTL + Walden = WaldenWeek

https://waldenweek.com
1•calinf•12m ago•0 comments

The philosophy behind ODF: openness, freedom and control – TDF Community Blog

https://blog.documentfoundation.org/blog/2026/01/24/the-philosophy-behind-odf/
4•cratermoon•15m ago•1 comments

Living sensor display implanted on skin for long-term biomarker monitoring

https://www.nature.com/articles/s41467-025-67384-2
2•ohjeez•16m ago•0 comments

Large volumes of Iranian government–sourced media are appearing across Wikipedia

https://twitter.com/npovmedia/status/2016964000190255470
1•nailer•16m ago•0 comments

Show HN: Open-source code for a private, infinitely scalable, PQ-secure L1 layer

https://github.com/nerv-bit/nerv
2•Nerv_b•16m ago•1 comments

How to grow blood red potassium ferricyanide crystals

https://crystalverse.com/potassium-ferricyanide-crystals/
1•crystalchase21•17m ago•0 comments

Show HN: My Open Source Deep Research tools beats Google and I can Prove it

https://github.com/IamLumae/Project-Lutum-Veritas
1•LutumVeritas•17m ago•0 comments

Ask HN: How do you approach writing in the age of AI?

1•jsimonrichard•17m ago•0 comments

Show HN: Memory plugin for OpenClaw; cross-platform context sync with major LLMs

https://www.memoryplugin-for-openclaw.com/
1•gdad•20m ago•0 comments

Show HN: unix-shell-script-kit 13.0 for POSIX functions, exit codes, color codes

https://github.com/SixArm/unix-shell-script-kit
1•jph•24m ago•0 comments

Should the Arctic Be Refrozen?

https://www.economist.com/science-and-technology/2026/01/29/should-the-arctic-be-refrozen
1•Anon84•25m ago•0 comments