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

Comments

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

Installed Claude Code on WordPress server, now I talk to it like ChatGPT [video]

https://www.youtube.com/watch?v=QcZBIKIdDjU
1•rvermeulen1993•1m ago•1 comments

Ask HN: Do you use the drone to inspect wildfire lanscape

1•kaihongye4•3m ago•0 comments

Show HN: Generate a privacy policy for your app with one click in VS Code

https://privacygen.tech/
2•jiaweixie•6m ago•0 comments

Show HN: HTML to Video

https://oglama.com/m/690e09622e60ac89e1080295
2•markjivko•8m ago•0 comments

No Shave November Through the Eyes of Face Detection

https://revontulet.dev/p/2025-no-shave-november-and-face-detection/
1•rednafi•8m ago•0 comments

Police takes down Cryptomixer cryptocurrency mixing service

https://www.bleepingcomputer.com/news/security/police-takes-down-cryptomixer-cryptocurrency-mixin...
2•fleahunter•9m ago•0 comments

Ask HN: Anyone using CRM and chatbot? What's broken or frustrating?

1•adipm_tech•9m ago•0 comments

Real-Time Rendering with JPEG-Compressed Textures

https://github.com/elias1518693/jpeg_textures
2•birdculture•12m ago•0 comments

Razor1911 – CMOS Cosmos [video]

https://www.youtube.com/watch?v=CfpaAxrQfy8
2•krige•15m ago•1 comments

NIS2

https://en.wikipedia.org/wiki/Cyber-security_regulation
1•doener•15m ago•0 comments

Docker Sandboxes

https://www.docker.com/blog/docker-sandboxes-a-new-approach-for-coding-agent-safety/
1•ridruejo•15m ago•0 comments

Ask HN: Has the time come to hire AI as opposed to interns?

1•sawirricardo•18m ago•1 comments

Show HN: GitHits – Code example engine for AI agents and devs (Private Beta)

https://githits.com/
3•skvark•19m ago•0 comments

Show HN: Downloadable Extensions for Postgres.app

https://postgresapp.com/extensions/
1•postgresapp•21m ago•0 comments

DeepSeek releases open-weights math model with IMO gold medal performance

https://huggingface.co/deepseek-ai/DeepSeek-Math-V2
18•victorbuilds•25m ago•0 comments

The Performance Inequality Gap

https://infrequently.org/2025/11/performance-inequality-gap-2026/
1•kiyanwang•26m ago•0 comments

Elided Branches: Revisiting Manager READMEs

https://www.elidedbranches.com/2025/11/revisiting-manager-readmes.html
1•kiyanwang•27m ago•0 comments

The Success Trap – By Mike Fisher

https://mikefisher.substack.com/p/the-success-trap
1•kiyanwang•28m ago•0 comments

I just dropped the price of my 120-page Spring Boot Testing guide to $0

https://rieckpil.de/free-spring-boot-testing-book/
1•rieckpil•32m ago•1 comments

The Sand Mandala (2023)

https://ben.bolte.cc/posts/2023-11-21-the-sand-mandala
1•codekansas•34m ago•0 comments

Neuron Models

https://ben.bolte.cc/posts/2025-11-23-neurons
2•codekansas•35m ago•0 comments

ChatGPT's Third Birthday

https://simonwillison.net/2025/Nov/30/chatgpt-third-birthday/
1•vismit2000•39m ago•0 comments

DropPop: Designing Drop-to-Deploy Mechanisms with Bistable Scissors Structures

https://dl.acm.org/doi/10.1145/3746059.3747657
1•PaulHoule•40m ago•0 comments

Let's Break Down the 45nm Process Node [video]

https://www.youtube.com/watch?v=zUgy29h0alM
1•chii•42m ago•0 comments

Zimage.run – Free, unlimited image generation using Alibaba's new Z-Image model

https://zimage.run/
3•yanaimngvov•42m ago•2 comments

AI Worflow/Agent pain points

1•samitterbach•43m ago•2 comments

Fabricate: fabricate an GitHub personae with projects and commit history

https://twitter.com/dabit3/status/1995316855896986075
2•nailer•46m ago•0 comments

Norwegian code calendar parodies Omarchy

https://tomarchy.kode24.no/
2•retrojorgen•50m ago•1 comments

Victorian-Style Lines for the Web: Elements of Identical Width

https://jacobfilipp.com/victorian-line/
2•freediver•51m ago•0 comments

Predicting the Worst and Stupidest

https://medium.com/luminasticity/predicting-the-worst-and-stupidest-dd79b60a7b05
1•bryanrasmussen•59m ago•0 comments