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•1y ago

Comments

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

Quicksand

https://en.wikipedia.org/wiki/Quicksand
1•cl3misch•1m ago•0 comments

Most people seeking green cards must now apply from outside US

https://www.bbc.com/news/articles/cgrpz4l1klgo
2•Lyngbakr•6m ago•0 comments

COMP 115: Databases

https://geophile.com/115/
1•tosh•10m ago•0 comments

Prompt engineering is dead, but Claude still tries

https://blog.exe.dev/prompt-engineering-is-dead
1•helloplanets•10m ago•0 comments

Human factors comparison of a procedural and nonprocedural query language (1981)

https://dl.acm.org/doi/10.1145/319628.319656
1•tosh•15m ago•0 comments

Cool New AI Meetup

https://greenvilleAI.coffee/
1•andytratt•18m ago•0 comments

Stanislav Kurilov

https://en.wikipedia.org/wiki/Stanislav_Kurilov
1•chistev•23m ago•0 comments

Gudlaugur Fridporsson

https://en.wikipedia.org/wiki/Gu%C3%B0laugur_Fri%C3%B0%C3%BE%C3%B3rsson
1•chistev•24m ago•0 comments

Modulejail: Proactively shrink a Linux host's kernel-module attack surface

https://github.com/jnuyens/modulejail
1•thunderbong•25m ago•0 comments

Kalshi and Polymarket Are Spoiling Reality TV Shows

https://variety.com/2026/tv/news/kalshi-polymarket-spoilers-reality-studios-1236756590/
1•thm•29m ago•0 comments

We ended up with Palantir and how to replace it

https://berthub.eu/articles/posts/some-notes-on-palantir/
2•ahubert•30m ago•0 comments

Ask HN: Where AI Researchers Congregate?

1•kosolam•31m ago•0 comments

More Dads Are Scaling Back at the Office for Kids and Housework

https://www.wsj.com/lifestyle/careers/more-dads-are-scaling-back-at-the-office-for-kids-and-house...
1•Anon84•33m ago•0 comments

Technical Coaching: A Side-Quest for Architects

https://www.youtube.com/watch?v=2cqgDKN48ak
1•RebootStr•42m ago•0 comments

The AI Superstars Who Say a 'Vibe Slop' Crisis Is Coming

https://www.wsj.com/tech/ai/vibe-coding-slop-ai-tools-e6a99394
1•doener•43m ago•0 comments

Show HN: Directionally bad – a newsletter about risks of AI centralization

https://deaination.substack.com/p/directionally-bad-issue-002
2•sultee•45m ago•0 comments

Supply chain attacks and OSS sustainability go hand in hand

https://twitter.com/mitchellh/status/2057567975826395606
1•tosh•47m ago•0 comments

Dario and Daniela Amodei on Oprah [video]

https://www.youtube.com/watch?v=w5dJqHilu5s
1•kerim-ca•51m ago•0 comments

Did Google's AI agents build an operating system for $916?

https://www.normaltech.ai/p/did-googles-ai-agents-really-build
1•smartmic•52m ago•0 comments

What spec-driven development gets wrong

https://www.augmentcode.com/blog/what-spec-driven-development-gets-wrong
2•fagnerbrack•59m ago•1 comments

The AI Great Leap Forward (A Warning)

https://mamund.substack.com/p/the-ai-great-leap-forward-a-warning
2•fagnerbrack•59m ago•0 comments

- -dangerously-skip-reading-code – olano.dev

https://olano.dev/blog/dangerously-skip/
1•fagnerbrack•59m ago•0 comments

Post-Primary-Care

https://fulghum.io/post-primary-care
1•jordanf•1h ago•0 comments

Obsidian: The free and flexible app for your private thoughts

https://obsidian.md/
1•doener•1h ago•0 comments

The success of 'natural language programming'

https://brooker.co.za/blog/2025/12/16/natural-language.html
2•jruohonen•1h ago•0 comments

One solution for Maine's struggling fishing industry? Give fillets away for free

https://www.npr.org/2026/05/23/nx-s1-5756374/food-fish-maine-portland-donations
1•defrost•1h ago•0 comments

Ask HN: Anyone catch the bug in codex with /goals?

1•Justlayme•1h ago•0 comments

3 years on from laying off over 1k, Hasbro encouraging survivors to not unionize

https://www.pcgamer.com/gaming-industry/3-years-on-from-laying-off-over-1-000-people-hasbro-and-w...
3•Michelangelo11•1h ago•0 comments

The Documentary That Drops You into a Class War [with Murder] [video]

https://www.youtube.com/watch?v=IlId4uqzUfA
1•burnt-resistor•1h ago•0 comments

The Pkg.go.dev API

https://go.dev/blog/pkgsite-api
1•tjek•1h ago•0 comments