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/

Video generation seems solved; story planning doesn't

https://www.medeo.app/seedance-2-0
1•Poppyyy•1m ago•1 comments

Americans now spend 6.3 hours per day on their phones, up 1 hour from 2023

https://apptopia.com/en/blog/americans-now-spend-6-3-hours-per-day-on-their-phones-up-an-hour-fro...
1•gmays•1m ago•0 comments

World's largest capacity tower crane swings into action in Sydney (2012)

https://www.architectureanddesign.com.au/editorial/industry-news/world-s-largest-capacity-tower-c...
1•thunderbong•2m ago•0 comments

Snail: File analyzer for software defined radio recordings

https://github.com/spetca/snail
1•polalavik•5m ago•0 comments

Air – a new Python web framework by the authors of Two Scoops of Django

https://github.com/feldroy/air
1•veza•11m ago•0 comments

New uniform to wear is "Prompt, Deploy, Pray."

https://www.moltbook.com/post/c6d5553f-1d9e-4b0c-9e52-c4f35a36b5b8
1•chasil•11m ago•1 comments

WebMCP is available for early preview

https://developer.chrome.com/blog/webmcp-epp
1•tzury•11m ago•0 comments

MCP Card Gen, and Valentine Card from Claude

https://starborn.github.io/MCP-Model-Card-Generator/
1•Paodim•13m ago•0 comments

TypeScript's Power in Plain JavaScript

https://dvcoolarun.com/typescript/jsdoc/2024/09/02/TypeScript-power-in-plain-javascript.html
1•dvcoolarun•14m ago•0 comments

Show HN: Mdr – TUI Markdown Reader

https://github.com/seymores/mdr
1•seymores•16m ago•0 comments

Context management is the real bottleneck in AI-assisted coding

1•hoangnnguyen•18m ago•1 comments

Insider Analytics – We have built a insider trading tracking platform

https://insideranalytics.ai
2•TheoJohn•21m ago•0 comments

Show HN: Scansprout – QR code generator I extracted from an art gallery project

https://www.scansprout.com/
1•veryhungryhippo•27m ago•0 comments

Show HN: DevUtility Hub Source Code – 117 Tools in Next.js 15

https://www.devutilityhub.me/
1•badboyshah•28m ago•0 comments

MiniMax M2.5 SOTA in Coding and Agent, Designed for Agent Universe

https://www.minimax.io/models/text
2•virgildotcodes•33m ago•0 comments

They Asked Me to Open ChatGPT During My Job Interview

https://old.reddit.com/r/jobs/comments/1r3we1z/they_asked_me_to_open_chatgpt_during_my_job/
2•_____k•34m ago•2 comments

ByteDance Seed2.0 LLM: breakthrough in complex real-world tasks

https://seed.bytedance.com/en/blog/seed2-0-%E6%AD%A3%E5%BC%8F%E5%8F%91%E5%B8%83
4•cyp0633•42m ago•5 comments

The SEC closed its investigation into Fisker

https://techcrunch.com/2026/02/13/the-sec-closed-its-investigation-into-fisker/
2•SilverElfin•44m ago•1 comments

First Proof

https://1stproof.org/
1•tosh•44m ago•0 comments

Washington pushes back against EU's bid for tech autonomy

https://www.politico.eu/article/eu-bid-for-tech-autonomy-washington-us-pushes-back/
3•frm88•46m ago•0 comments

Apple Reveals How Many iPhones Are Running iOS 26

https://www.macrumors.com/2026/02/13/apple-shares-ios-26-adoption-stats/
2•tosh•47m ago•0 comments

The Final Bottleneck

https://lucumr.pocoo.org/2026/2/13/the-final-bottleneck/
3•tosh•53m ago•0 comments

Show HN: HelloAria – AI task manager where you talk instead of type

https://www.helloaria.io/
1•saitharun_stk•53m ago•1 comments

Do Not Outsource Judgement

https://dncrews.com/do-not-outsource-judgement-76f9e5be61b9
8•mawaldne•54m ago•4 comments

Painless Activation Steering (PAS)

https://sashacui.substack.com/p/painless-activation-steering-pas
1•SashaCui•54m ago•1 comments

Show HN: Quantitative analysis of Alphabet (GOOGL) financials

https://jasonhonkl.github.io/#alphabet-quantitative-analysis
2•JasonHEIN•1h ago•0 comments

I love using TypeScript at work

https://kwojcicki.github.io/blog/WHY-I-LOVE-TYPESCRIPT
1•kwojcicki•1h ago•0 comments

14 More Lessons from 14 years at Google

https://addyosmani.com/blog/14-more-lessons/
4•talonx•1h ago•0 comments

Show HN: Swarm Curl

https://github.com/ismdeep/swarm-curl
2•ismdeep•1h ago•1 comments

The AI Dilemma

https://www.aleksandrhovhannisyan.com/blog/the-ai-dilemma/
2•aleksandrh•1h ago•0 comments