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

Comments

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

How Iran Crushed a Citizen Uprising with Lethal Force

https://www.nytimes.com/2026/01/25/world/middleeast/iran-how-crackdown-was-done.html
2•mikhael•4m ago•0 comments

Resonant frequencies of a human brain, skull, and head(2022)

https://www.sciencedirect.com/science/chapter/edited-volume/abs/pii/B9780128181447000062
1•rolph•7m ago•0 comments

Ask HN: What software / applications can you now build thanks to AI

1•zarathustra333•10m ago•0 comments

SmarterMail CVE-2026-23760 Exploited for RCE via System Events

https://thecyberedition.com/smartermail-cve-2026-23760-exploited-for-rce-via-system-events/
2•thehacknews•15m ago•1 comments

Super Monkey Ball in TypeScript

https://monkeyball-online.pages.dev/
3•guu•15m ago•1 comments

Epic Win: U.S. Secret Weapon May Have Incapacitated Maduro's Guards

https://www.forbes.com/sites/davidhambling/2026/01/13/epic-win-us-secret-weapon-may-have-incapaci...
1•rolph•15m ago•0 comments

Go-TypeScript – Compile and Run TypeScript Code Natively in Go

https://github.com/clarkmcc/go-typescript
1•TheWiggles•16m ago•0 comments

6.1M workers with 86% women, face AI disruption without a safety net

https://www.cryptopolitan.com/6-1-million-workers-with-86-women-face-ai-disruption-without-a-safe...
2•cumo•23m ago•0 comments

Why One of OpenAI's Top Researchers Walked Away [video]

https://www.youtube.com/watch?v=VaCq4u5c78U
1•gmays•23m ago•0 comments

Clawdbot-Webchat-Lite

https://github.com/study8677/clawdbot-webchat-lite
2•study8677•40m ago•0 comments

Gold Breaks $5.000/Oz

https://goldprice.org/?new
4•csomar•42m ago•0 comments

We're on the News

https://www.abc.net.au/news/2026-01-21/qld-teenagers-create-coding-app-code-lab-sri-lanka-student...
1•thadusTeam•43m ago•0 comments

A global startup marketplace where investors can message founders directly

https://azion.lovable.app
1•Aryannnmm•47m ago•1 comments

'Halo' Actor Steve Downes Asks You Not to Remake His Voice with AI

https://gizmodo.com/halo-actor-steve-downes-asks-you-not-to-remake-his-voice-with-ai-2000713343
1•cebert•47m ago•0 comments

Iran's internet blackout may become permanent, with access for elites only

https://restofworld.org/2026/iran-blackout-tiered-internet/
31•siev•48m ago•12 comments

Running the Stupid Cricut Software on Linux

https://arthur.pizza/2025/12/running-stupid-cricut-software-under-linux/
1•starkparker•1h ago•0 comments

Gold blasts past $5k to record high on safe-haven rush

https://www.reuters.com/business/finance/gold-rushes-record-high-above-5000oz-2026-01-25/
4•SilverElfin•1h ago•3 comments

Show HN: InsAIts V2 – Real-time monitoring for multi-agent AI communication

https://github.com/Nomadu27/InsAIts
1•MrSteaddy•1h ago•0 comments

Show HN: (29x faster)Rapidvalidators - Python's validators lib rewritten in Rust

https://github.com/vivekkalyanarangan30/rapidvalidators
2•vivekkalyanaran•1h ago•0 comments

Flying Toasters

https://www.bryanbraun.com/after-dark-css/all/flying-toasters.html
4•sadeshmukh•1h ago•1 comments

Cloudflare-level AI-LLM bot protection, but data is under your control

https://github.com/cocky-punch/fantasma_cero
2•cascada•1h ago•0 comments

Trump says US used secret weapon to disable Venezuelan equipment in Maduro raid

https://apnews.com/article/trump-venezuela-weapon-maduro-drug-strikes-c052fd24a350a04a458f501b4b5...
6•colinprince•1h ago•5 comments

The Politics of Struggling Americans

https://www.gojiberries.io/the-politics-of-struggling-americans/
3•neehao•1h ago•0 comments

A Poem That Behaves Like a Machine

https://medium.com/@darwingosal/a-poem-that-behaves-like-a-machine-737fce2791f4
2•CharlesW•1h ago•0 comments

Environmentalists worry Google behind bid to control Oregon town's water

https://www.sfgate.com/national-parks/article/mount-hood-water-google-21307223.php
18•voxadam•1h ago•0 comments

Gemini team, please add URL query parameter support (?q= or?prompt=)

1•hiddenest•1h ago•1 comments

A New Hardware Class of 2026

https://www.recordsofthought.com/signal-to-source
1•colinprince•1h ago•0 comments

The Atelier: Craft, Code, and the Coming Guild

https://jamesmunsch.com/words/2026-01-18-the-atelier--craft--code--and-the-coming-guild.html
1•b1n•1h ago•1 comments

Show HN: WhyThere – Compare cities side-by-side to decide where to move

https://whythere.life
2•daversa•1h ago•0 comments

We built an AI coding tool that stores nothing on our servers

https://shakespeare.diy
5•ravenbitcoin•1h ago•3 comments