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/

I Built the Redis GUI Client as an Alternative to Redis Insight – Redimo

https://www.redimo.dev
1•shh6155•2m ago•0 comments

Watching myself say things I would never say. Deepfake menace we must confront

https://www.theguardian.com/commentisfree/2026/jan/05/deepfakes-youtube-menace-yanis-varoufakis
1•defrost•2m ago•0 comments

ECB’s digital euro project faces decisive vote in 2026

https://www.ft.com/content/99a7b61b-c5df-4794-8c5f-2e3acd291333
1•nutjob2•8m ago•0 comments

Decorative Cryptography

https://www.dlp.rip/decorative-cryptography
7•todsacerdoti•13m ago•1 comments

Unifying QFT and GR Through Topologically Protected Gauge Theory

https://www.academia.edu/145737035/The_Renormalization_of_Gravity_Resolving_the_Goroff_Sagnotti_D...
1•MohskiBroskiAI•13m ago•0 comments

FL Studio Linux Setup Guide

https://github.com/Torbuntu/fl-studio-linux-setup
1•luckys•15m ago•0 comments

The Death and Rebirth of Programming – The Phoenix Architecture

https://aicoding.leaflet.pub/3malrv6poy22a
1•kiyanwang•18m ago•0 comments

The Naibbe cipher: encrypts Latin and Italian as Voynich-like ciphertext

https://www.youtube.com/watch?v=ByARtG-GUPo
1•omega3•18m ago•1 comments

Microsoft Office renamed to "Microsoft 365 Copilot app"

https://www.office.com
4•LeoPanthera•18m ago•2 comments

League of Legends Client rendered unusable after 10 year certificate expired

https://gamefragger.com/pc/moba/league-of-legends/league-of-legends-global-login-outage-expired-c...
1•dracotomes•20m ago•0 comments

Show HN: Spectra – Visuals should be infrastructure, not manual work

2•JannikJung•24m ago•0 comments

FreeBSD Home NAS, part 5: ZFS pools, datasets, snapshots, and monitoring ZFS he

https://rtfm.co.ua/en/freebsd-home-nas-part-5-zfs-pool-datasets-snapshots-and-zfs-monitoring/
2•todsacerdoti•25m ago•0 comments

Show HN: Kandinsky AI Video Generator

https://www.kandinskyai.com
1•Zach_HE•25m ago•0 comments

Swan Upping

https://en.wikipedia.org/wiki/Swan_upping
1•cyode•26m ago•0 comments

Voice Coding on iPad with Claude

https://www.youtube.com/watch?v=Rptvh534lI4
2•siwakotisaurav•27m ago•1 comments

What are some good designer agents available now?

1•nmr521521•28m ago•0 comments

Blade Runner: Braun HL 1 Personal Fan, En español (2012)

http://camara-de-maravillas.blogspot.com/2012/11/el-objeto-de-la-semana-ventilador-de.html
1•exvi•31m ago•0 comments

Ilya Sutskever

https://en.wikipedia.org/wiki/Ilya_Sutskever
1•doener•32m ago•0 comments

Secure, lint, and harden GitHub Actions workflows

https://github.com/reugn/github-ci
1•jrzx•36m ago•0 comments

Show HN: Transform messy server logs into clean, readable format

https://prettylog.net
1•bardonadam•37m ago•0 comments

RustFS vulnerability: Hardcoded token with privileged access

https://old.reddit.com/r/selfhosted/comments/1q432iz/update_your_rustfs_immediately_hardcoded_token/
3•Erlangen•38m ago•0 comments

Inducing self-NSFW classification in image models to prevent deepfakes edits

7•Genesis_rish•40m ago•0 comments

Show HN: Friction – A trilogy of archival fiction told via GitHub Markdown

https://github.com/andreas-breidenthal/friction-trilogy
1•a-breidenthal•43m ago•1 comments

Starlink offers free internet to Venezuela following Maduro capture

https://starlink.com/en-jo/support/article/026071b1-2b57-1ddb-8321-22442313223e?srsltid=AfmBOorDu...
1•tolloid•45m ago•0 comments

Show HN: H4 – The Next Paradigm of Interaction

https://h4os.run/
1•yeclark•47m ago•0 comments

Show HN: Formfactor – A MIDI Modulation Workbench

https://aftertone.co/formfactor/
1•oceanwaves•49m ago•0 comments

Building a TLS 1.3 Implementation in Pure Common Lisp

https://atgreen.github.io/repl-yell/posts/pure-tls/
2•birdculture•51m ago•0 comments

Show HN: MockBlast – Local-first mock data generator (SQL, Mongo, JSON)

https://mockblast.com
1•lotfijbe•54m ago•1 comments

Asmotor: Powerful macro (cross) assembler package for several CPUs

https://github.com/asmotor/asmotor
1•doener•58m ago•0 comments

Zed extension that automatically inserts customizable file headers

https://github.com/MrAMS/zed-auto-file-header
1•Kika233•59m ago•0 comments