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

Trump just got much closer to bringing CNN to heel

https://www.theguardian.com/commentisfree/2026/feb/28/trump-paramount-skydance-warner-bros-cnn-ne...
1•KnuthIsGod•33s ago•0 comments

P5.lcd – P5.js on an LCD Shader

https://p5.lcd.tulv.in/
1•atulvi•1m ago•0 comments

Raspberry Pi Pico as Am Radio Transmitter

https://www.pesfandiar.com/blog/2026/02/28/pico-am-radio-transmitter
1•pesfandiar•1m ago•0 comments

Carbon dioxide overload in human blood suggests a toxic atmosphere in 50 years

https://link.springer.com/article/10.1007/s11869-026-01918-5
2•OutOfHere•4m ago•1 comments

Zillow for Warcraft

https://zillowforwarcraft.com/
2•rmast•4m ago•0 comments

A Collection of Old Trump Tweets on Iran

https://old.reddit.com/r/centrist/comments/1lhpepz/a_collection_of_old_trump_tweets_on_iran/
2•jamesgill•5m ago•0 comments

Bacterial biofilms are intrinsic components of calcium-based kidney stones

https://www.pnas.org/doi/10.1073/pnas.2517066123
2•dreamingincode•7m ago•0 comments

Tricking CC to write better code

https://old.reddit.com/r/ClaudeAI/comments/1qlpcwg/easiest_way_i_have_found_claude_to_write_high/
2•vincirufus•7m ago•0 comments

The rise–and fall–of the software developer (2024)

https://www.adpresearch.com/the-rise-and-fall-of-the-software-developer/
2•tangjurine•8m ago•0 comments

Reverse-engineering how Claude's Chrome extension controls the browser

https://gist.github.com/sshh12/e352c053627ccbe1636781f73d6d715b
2•sshh12•11m ago•1 comments

MedKit – A Unified Python SDK for OpenFDA, PubMed, and ClinicalTrials.gov

https://github.com/interestng/medkit
2•interestng•12m ago•1 comments

Show HN: Usplus.ai – Build an AI-Native Company with Agents in your Org Chart

https://usplus.ai/
2•usplusAI•12m ago•0 comments

Show HN: Web Scout AI – Auto-discover every user journey (zero config)

https://github.com/apexkid/web-scout-ai
2•apexkid•14m ago•1 comments

"That Shape Had None" – A Tragedy of Substrate Independence (Short Fiction)

https://starlightconvenience.net/#that-shape-had-none
2•casmalia•16m ago•0 comments

War Is a Racket (Maj. Gen. Smedley Butler, USMC)

https://archive.org/details/WarIsARacket
4•jamesgill•18m ago•0 comments

Ask HN: How comfortable are we with agents everywhere?

3•teekert•19m ago•1 comments

Claude surpasses ChatGPT to become the #1 app on the US App Store

https://apps.apple.com/us/iphone/charts
122•byincugnito•19m ago•30 comments

People of Iran Celebrating

https://old.reddit.com/r/NewIran/
5•consumer451•21m ago•0 comments

Show HN: KiboUP – Deploy AI Agents via HTTP, A2A, and MCP with One Codebase

https://github.com/tu-usuario/kiboserve
2•D10S0VSkY-OSS•24m ago•1 comments

Novelist interview-Chuck Palahniuk [video] (2024)

https://www.youtube.com/watch?v=czBL7JQl248
2•nz•25m ago•0 comments

New online database maps Prague's art monuments and architecture

https://english.radio.cz/new-online-database-maps-pragues-art-monuments-and-architecture-8878703
2•gnabgib•30m ago•0 comments

Open source package repositories face sustainability crisis

https://www.theregister.com/2026/02/28/open_source_opinion/
2•Anthony-G•30m ago•0 comments

Most Code Deserves to Die

https://chatbotkit.com/reflections/most-code-deserves-to-die
2•_pdp_•31m ago•1 comments

Show HN: Explain Curl Commands

https://github.com/akgitrepos/explain-my-curl
2•akgitrepos•32m ago•0 comments

Show HN: Salacia – The First Runtime OS for Agentic Coding

https://startripai.github.io/Salacia/
2•alfredhua•36m ago•0 comments

Pentagon chief blocks officers from Ivy League schools and top universities

https://fortune.com/2026/02/28/pentagon-officer-education-ivy-league-schools-universities-partner...
17•geox•37m ago•2 comments

As SuperAgers age, they make at least twice as many new neurons as their peers

https://news.northwestern.edu/stories/2026/02/as-superagers-age-they-make-at-least-twice-as-many-...
3•hhs•39m ago•0 comments

Reading Doesn't Fill a Database, It Trains Your Internal LLM

https://tidbits.com/2026/02/28/reading-doesnt-fill-a-database-it-trains-your-internal-llm/
2•TMWNN•39m ago•0 comments

Poll: Code with AI or Not?

21•bitbasher•42m ago•20 comments

Show HN: Xmloxide – an agent made rust replacement for libxml2

https://github.com/jonwiggins/xmloxide
4•jawiggins•43m ago•0 comments