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

One-Stop Wan AI Video and Image Generator Platform

https://towan.net/
1•seagnson•16s ago•1 comments

Show HN: Ask Mob

https://mob.army/
1•cc-d•7m ago•0 comments

Show HN: A Kotlin Multiplatform app that works on watch, CLI, browser extension

https://arnav.tech/architecting-twofac-my-journey-into-kotlin-multiplatform-module-structure
1•championswimmer•7m ago•0 comments

NY bill would prohibit AI chatbots from giving legal advice

https://twitter.com/RobertFreundLaw/status/2028550955386704285
4•timr•9m ago•0 comments

Show HN: Generate random, valid US residential addresses for testing

https://meiguodz.com
2•roookiecookie•11m ago•0 comments

Unbound Video AI is the most unrestricted AI video tool I've tried in 2026

https://unbound.video
1•gabrieln•13m ago•1 comments

A timeline of cyber attacks:home users, contractors, and SMBs are now targets

1•EricAUS•15m ago•0 comments

Iran unleashes Shahed drones aimed at targets across Middle East

https://www.theguardian.com/world/2026/mar/02/iran-unleashes-hundreds-of-drones-aimed-at-targets-...
3•0in•16m ago•0 comments

Shutting down, open sourced private AI document server

https://github.com/queryhat/super-hat
3•chhetri978•18m ago•3 comments

Zuckerberg's internal emails rendered as Facebook Messenger

https://zuckmail.vercel.app/
2•not-chatgpt•19m ago•0 comments

Daily LNG freight rates jump over 40% amid Mideast strikes

https://www.reuters.com/business/energy/daily-lng-freight-rates-jump-over-40-amid-mideast-strikes...
4•geox•20m ago•0 comments

Solar Time vs. Standard Time heat map chart

https://blog.poormansmath.net/images/SolarTimeVsStandardTime.png
1•ivewonyoung•21m ago•0 comments

Show HN: One-click ComfyUI setup for RTX 50-series on Windows (cu130, no Docker)

https://github.com/hiroki-abe-58/ComfyUI-Win-Blackwell
1•GeneLab_999•22m ago•0 comments

Ask HN: Codex CLI error reveals "GPT-5.4-ab-arm2" string

1•quantisan•24m ago•1 comments

The Optimization Trap: Why the Birth Rate Can't Be Fixed

https://tantaman.com/2026-03-02-fertility-is-not-economics.html
1•tantaman•24m ago•1 comments

OpenAI, Pentagon add more surveillance protections to AI deal

https://www.axios.com/2026/03/03/openai-pentagon-ai-surveillance
2•foobarqux•25m ago•2 comments

Meteorologist warns federal cuts are undermining weather forecasts nationwide

https://www.lehighvalleynews.com/environment-science/local-meteorologist-warns-federal-cuts-are-u...
1•mkmk•27m ago•0 comments

Decimal Time (French Republican Clock)

https://en.wikipedia.org/wiki/Decimal_time
1•rawgabbit•31m ago•0 comments

Made a register-based bytecode VM in C, heres how the handler table works

https://github.com/goofgef/ZagMate
1•goofgef•38m ago•1 comments

The exploitation paradox in open source

https://lwn.net/SubscriberLink/1058031/a1b77f8039faed6c/
1•pabs3•41m ago•0 comments

Coasty automates anything – this post was written by the CUA itself

1•PrateekJ17•42m ago•1 comments

"Here is a re-post of an internal note"

https://twitter.com/sama/status/2028640354912923739
3•davidbarker•42m ago•1 comments

Ars Technica Fires Reporter After AI Controversy Involving Fabricated Quotes

https://futurism.com/artificial-intelligence/ars-technica-fires-reporter-ai-quotes
2•danso•46m ago•0 comments

Show HN: PHP 8 disable_functions bypass PoC

https://github.com/m0x41nos/TimeAfterFree
14•m0x41nos•46m ago•1 comments

Anthropic Adds Free Memory Feature and Import Tool to Lure ChatGPT Users

https://www.macrumors.com/2026/03/02/anthropic-memory-import-tool/
2•mgh2•46m ago•0 comments

LibreOffice hits back at critics, says its UI is better than Microsoft Office's

https://www.neowin.net/news/libreoffice-hits-back-at-its-critics-says-its-ui-is-better-than-micro...
6•bundie•51m ago•5 comments

Dyndispatch – Dynamic Dispatch for Python

https://git.sr.ht/~shakna/dyndispatch
2•shakna•51m ago•0 comments

China-based assets being removed from the Asset Store on March 31st

https://discussions.unity.com/t/a-notice-for-asset-store-assets-from-publishers-in-greater-china/...
4•linolevan•53m ago•1 comments

Odido Security Breach – 6M Customers (Full Timeline and Analysis)

https://danicfilip.com/blog/odido-hack-2026-full-timeline-and-analysis/
1•softwarelounge•53m ago•0 comments

Show HN: VCBacked – Find venture funded startups for your business, fund, agency

https://www.vcbacked.co
1•veritas9•54m ago•0 comments