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/

Indian PSLV satellite launcher fails for the second time in a row

https://www.space.com/space-exploration/launches-spacecraft/india-eos-n1-military-satellite-15-pa...
2•Guestmodinfo•2m ago•0 comments

Hi HN, I'm Bikram a Developer from Bihar, India

https://www.earthbornbarsoi.in/
2•Vikkyv•3m ago•0 comments

Lot of insights: The biggest mistakes I've made with Lunch Money – Jen

https://lunchbag.ca/lunch-money-mistakes/
1•Mehuleo•8m ago•0 comments

Show HN: Incus-Sandbox-SDK

https://github.com/divyenduz/incus-sandbox-sdk
1•divyenduz•8m ago•1 comments

Higher daylight exposure improves cognitive performance, study finds

https://www.manchester.ac.uk/about/news/higher-daylight-exposure-improves-cognitive-performance-s...
1•XzetaU8•9m ago•0 comments

AI can now 'see' optical illusions. What does it tell us about our own brains?

https://www.bbc.com/future/article/20251218-how-ai-is-shedding-new-light-on-optical-illusions
2•vinni2•13m ago•0 comments

Phind Is Shutting Down

http://phind.com/
1•deepdude•14m ago•0 comments

Elon Musk says saving for retirement is irrelevant: 'It won't matter'

https://finance.yahoo.com/news/elon-musk-says-saving-retirement-221451637.html
1•quantified•15m ago•1 comments

Claude Cowork first impression: Cowork Deleted 11GB of files [video]

https://www.youtube.com/watch?v=_6C9nMvQsGU
1•virgildotcodes•16m ago•0 comments

Detecting MIME Types in Go

https://rnemeth90.github.io/posts/2024-03-27-golang-detect-file-type/
1•todsacerdoti•17m ago•0 comments

QGIS – a geographic information system software that is free and open-source

https://www.qgis.org/
1•merusame•19m ago•0 comments

A 3D-printed watch-cleaning machine

https://adventuresinamateurwatchfettling.com/2025/04/11/a-3d-printed-watch-cleaning-machine/
1•tagawa•22m ago•0 comments

Atlas: An Analytical Topology of Logic, Aims, and Structure

https://zenodo.org/records/18226093
1•takko_the_boss•22m ago•0 comments

A Plea for Silicon Valley to Enter Politics

https://loeber.substack.com/p/30-a-plea-for-silicon-valley-to-enter
1•barry-cotter•27m ago•1 comments

Show HN: A script that turns 365 photos into a square year poster

https://github.com/0plus1/oneyear
1•0plus1•35m ago•0 comments

Missed Connections NYC [video]

https://www.youtube.com/shorts/anRJ_aQzfRQ
2•low_tech_punk•35m ago•0 comments

Bohemian Tragedy: the SF-based society may have logged its old-growth forest

https://archive.vanityfair.com/article/share/895a393a-52cc-46f5-a055-404e91c291bf
2•wahnfrieden•37m ago•0 comments

OpenCode-Container

https://git.jeena.net/jeena/opencode-container
1•jeena•37m ago•1 comments

List of Claude Skills, resources, and tools for customizing Claude AI workflows

https://github.com/ComposioHQ/awesome-claude-skills
2•saikatsg•38m ago•0 comments

For indie hackers: Outsource marketing or do it yourself?

https://amplift.ai/
3•gaygum102•42m ago•2 comments

Dev Browser: A browser automation plugin for Claude Code

https://github.com/SawyerHood/dev-browser
1•saikatsg•42m ago•0 comments

Isaac Newton on Learning Mathematical Thinking and Reasoning

https://learningloom.substack.com/p/isaac-newton-on-learning-mathematical
2•atomicnature•42m ago•0 comments

Unpopular Opinion: Bootstrap is a better front-end framework than Tailwind

2•pyeri•44m ago•1 comments

Planning on Claude: Tips

https://skeltoac.substack.com/p/planning-on-claude
1•skeltoac•44m ago•0 comments

Playwriter: Playwright MCP with 80% less context window

https://github.com/remorses/playwriter
2•saikatsg•46m ago•0 comments

Experience Ceremonial Grade Matcha by Opure

https://opureaustralia.com.au/products/matcha-powder
1•zafarali125•46m ago•0 comments

Every Pill I Took: 2000 – 2001

https://www.counter-print.co.uk/products/every-pill-i-took
3•colinprince•47m ago•0 comments

Rapid morphological change in an urban bird due to Covid-19 restrictions

https://www.pnas.org/doi/10.1073/pnas.2520996122
2•WaitWaitWha•50m ago•0 comments

Magical moment: The enormity of the first U.S. adult heart transplant (2018)

https://med.stanford.edu/stanmed/2018winter/fifty-years-since-first-us-adult-heart-transplant-sta...
2•petethomas•54m ago•1 comments

Europe vs. America: the West at War with Itself [video]

https://www.youtube.com/watch?v=rkUhQq3iPOo
1•dgudkov•55m ago•0 comments